1 | <?php |
||
11 | class ProductWishList extends DataObject implements PermissionProvider, Dynamic\ViewableDataObject\VDOInterfaces\ViewableDataObjectInterface |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | private static $db = [ |
||
18 | 'Title' => 'Varchar(100)', |
||
19 | 'Private' => 'Boolean', |
||
20 | ]; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private static $has_one = [ |
||
26 | 'Member' => 'Member', |
||
27 | ]; |
||
28 | |||
29 | /** |
||
30 | * @param null $params |
||
31 | * |
||
32 | * @return FieldList |
||
33 | */ |
||
34 | 2 | public function getFrontEndFields($params = null) |
|
42 | |||
43 | /** |
||
44 | * @param bool $showCancel |
||
45 | * |
||
46 | * @return FieldList |
||
47 | */ |
||
48 | 2 | public function getFrontEndActions($showCancel = false) |
|
64 | |||
65 | /** |
||
66 | * @return RequiredFields |
||
67 | */ |
||
68 | 2 | public function getFrontEndRequiredFields() |
|
78 | |||
79 | /** |
||
80 | * @return bool |
||
81 | */ |
||
82 | 2 | public function getIsEditing() |
|
88 | |||
89 | /** |
||
90 | * set ParentPage for ViewableDataobject |
||
91 | * |
||
92 | * @return string |
||
93 | */ |
||
94 | public function getParentPage() |
||
98 | |||
99 | /** |
||
100 | * @return String|bool |
||
101 | */ |
||
102 | 1 | public function getUpdateLink() |
|
106 | |||
107 | /** |
||
108 | * set ViewAction for ViewableDataobject |
||
109 | * |
||
110 | * @return string |
||
111 | */ |
||
112 | 1 | public function getViewAction() |
|
116 | |||
117 | /** |
||
118 | * @return array |
||
119 | */ |
||
120 | 1 | public function providePermissions() |
|
129 | |||
130 | /** |
||
131 | * @param Member|null $member |
||
132 | * |
||
133 | * @return bool|int |
||
134 | */ |
||
135 | 1 | public function canEdit($member = null) |
|
139 | |||
140 | /** |
||
141 | * @param Member|null $member |
||
142 | * |
||
143 | * @return bool|int |
||
144 | */ |
||
145 | 1 | public function canDelete($member = null) |
|
149 | |||
150 | /** |
||
151 | * @param Member|null $member |
||
152 | * |
||
153 | * @return bool|int |
||
154 | */ |
||
155 | 1 | public function canCreate($member = null) |
|
159 | |||
160 | /** |
||
161 | * @param Member|null $member |
||
162 | * |
||
163 | * @return bool |
||
164 | */ |
||
165 | 1 | public function canView($member = null) |
|
171 | |||
172 | } |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: