1 | <?php |
||
26 | class RelativeQueryBuilder implements |
||
27 | Clause\GroupByInterface, |
||
28 | Clause\HavingInterface, |
||
29 | Clause\JoinInterface, |
||
30 | Clause\LimitInterface, |
||
31 | Clause\OrderByInterface, |
||
32 | Clause\SelectInterface, |
||
33 | Clause\SetInterface, |
||
34 | Clause\WhereInterface |
||
35 | { |
||
36 | /** |
||
37 | * @var BuilderInterface |
||
38 | */ |
||
39 | private $wrappedBuilder; |
||
40 | |||
41 | /** |
||
42 | * @var TableInterface |
||
43 | */ |
||
44 | private $wrappedTable; |
||
45 | |||
46 | /** |
||
47 | * @param BuilderInterface $builder |
||
48 | * @param TableInterface $table |
||
49 | */ |
||
50 | 1 | public function __construct(BuilderInterface $builder, TableInterface $table) |
|
55 | |||
56 | /** |
||
57 | * @inheritdoc |
||
58 | */ |
||
59 | 1 | public function __destruct() |
|
63 | |||
64 | /** |
||
65 | * @param array $args |
||
66 | * |
||
67 | * @return array |
||
68 | */ |
||
69 | 1 | public function replaceSelfReference(array $args) |
|
75 | |||
76 | /** |
||
77 | * @param mixed $clause |
||
78 | * |
||
79 | * @return RelativeClause |
||
80 | */ |
||
81 | 1 | private function createRelativeClause($clause) |
|
85 | |||
86 | /** |
||
87 | * @param callable $callback |
||
88 | * |
||
89 | * @return mixed |
||
90 | */ |
||
91 | 1 | private function getQueryBuilder(callable $callback) |
|
95 | |||
96 | /** |
||
97 | * @inheritdoc |
||
98 | */ |
||
99 | 1 | public function addSelect($_) |
|
108 | |||
109 | /** |
||
110 | * @inheritdoc |
||
111 | */ |
||
112 | 1 | public function getSelectClauses() |
|
118 | |||
119 | /** |
||
120 | * @inheritdoc |
||
121 | */ |
||
122 | public function getGroupByClauses() |
||
128 | |||
129 | /** |
||
130 | * @inheritdoc |
||
131 | */ |
||
132 | public function isGroupByWithRollUp() |
||
138 | |||
139 | /** |
||
140 | * @inheritdoc |
||
141 | */ |
||
142 | public function addGroupBy($_) |
||
151 | |||
152 | /** |
||
153 | * @inheritdoc |
||
154 | */ |
||
155 | public function setGroupByWithRollUp($groupByWithRollUp) |
||
163 | |||
164 | /** |
||
165 | * @inheritdoc |
||
166 | */ |
||
167 | public function getHavingClauses() |
||
173 | |||
174 | /** |
||
175 | * @inheritdoc |
||
176 | */ |
||
177 | public function andHaving($_) |
||
186 | |||
187 | /** |
||
188 | * @inheritdoc |
||
189 | */ |
||
190 | public function getLimitClause() |
||
196 | |||
197 | /** |
||
198 | * @inheritdoc |
||
199 | */ |
||
200 | public function setLimit($limitClause) |
||
208 | |||
209 | /** |
||
210 | * @inheritdoc |
||
211 | */ |
||
212 | public function getOrderByClauses() |
||
218 | |||
219 | /** |
||
220 | * @inheritDoc |
||
221 | */ |
||
222 | public function addOrderBy($_) |
||
231 | |||
232 | /** |
||
233 | * @inheritDoc |
||
234 | */ |
||
235 | public function getSetClauses() |
||
241 | |||
242 | /** |
||
243 | * @inheritDoc |
||
244 | */ |
||
245 | public function addSet($_) |
||
254 | |||
255 | /** |
||
256 | * @inheritDoc |
||
257 | */ |
||
258 | public function getWhereClauses() |
||
264 | |||
265 | /** |
||
266 | * @inheritDoc |
||
267 | */ |
||
268 | public function andWhere($_) |
||
277 | |||
278 | /** |
||
279 | * @inheritDoc |
||
280 | */ |
||
281 | public function getJoinTables() |
||
287 | |||
288 | /** |
||
289 | * @inheritDoc |
||
290 | */ |
||
291 | public function doJoin($joinType, $table, $alias = null, $joinOn = null) |
||
298 | |||
299 | /** |
||
300 | * @inheritDoc |
||
301 | */ |
||
302 | public function join($table, $alias = null, $joinOn = null) |
||
306 | |||
307 | /** |
||
308 | * @inheritDoc |
||
309 | */ |
||
310 | public function straightJoin($table, $alias = null, $joinOn = null) |
||
314 | |||
315 | /** |
||
316 | * @inheritDoc |
||
317 | */ |
||
318 | public function crossJoin($table, $alias = null, $joinOn = null) |
||
322 | |||
323 | /** |
||
324 | * @inheritDoc |
||
325 | */ |
||
326 | public function leftJoin($table, $alias = null, $joinOn = null) |
||
330 | |||
331 | /** |
||
332 | * @inheritDoc |
||
333 | */ |
||
334 | public function rightJoin($table, $alias = null, $joinOn = null) |
||
338 | |||
339 | /** |
||
340 | * @inheritDoc |
||
341 | */ |
||
342 | public function innerJoin($table, $alias = null, $joinOn = null) |
||
346 | } |
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: