lib/Doctrine/ORM/Query/TreeWalkerAdapter.php 1 location
|
@@ 58-67 (lines=10) @@
|
55 |
|
/** |
56 |
|
* {@inheritdoc} |
57 |
|
*/ |
58 |
|
public function setQueryComponent($dqlAlias, array $queryComponent) |
59 |
|
{ |
60 |
|
$requiredKeys = ['metadata', 'parent', 'relation', 'map', 'nestingLevel', 'token']; |
61 |
|
|
62 |
|
if (array_diff($requiredKeys, array_keys($queryComponent))) { |
63 |
|
throw QueryException::invalidQueryComponent($dqlAlias); |
64 |
|
} |
65 |
|
|
66 |
|
$this->queryComponents[$dqlAlias] = $queryComponent; |
67 |
|
} |
68 |
|
|
69 |
|
/** |
70 |
|
* Retrieves the Query Instance responsible for the current walkers execution. |
lib/Doctrine/ORM/Query/TreeWalkerChain.php 1 location
|
@@ 58-67 (lines=10) @@
|
55 |
|
/** |
56 |
|
* {@inheritdoc} |
57 |
|
*/ |
58 |
|
public function setQueryComponent($dqlAlias, array $queryComponent) |
59 |
|
{ |
60 |
|
$requiredKeys = ['metadata', 'parent', 'relation', 'map', 'nestingLevel', 'token']; |
61 |
|
|
62 |
|
if (array_diff($requiredKeys, array_keys($queryComponent))) { |
63 |
|
throw QueryException::invalidQueryComponent($dqlAlias); |
64 |
|
} |
65 |
|
|
66 |
|
$this->queryComponents[$dqlAlias] = $queryComponent; |
67 |
|
} |
68 |
|
|
69 |
|
/** |
70 |
|
* {@inheritdoc} |
lib/Doctrine/ORM/Query/SqlWalker.php 1 location
|
@@ 230-239 (lines=10) @@
|
227 |
|
/** |
228 |
|
* {@inheritdoc} |
229 |
|
*/ |
230 |
|
public function setQueryComponent($dqlAlias, array $queryComponent) |
231 |
|
{ |
232 |
|
$requiredKeys = ['metadata', 'parent', 'relation', 'map', 'nestingLevel', 'token']; |
233 |
|
|
234 |
|
if (array_diff($requiredKeys, array_keys($queryComponent))) { |
235 |
|
throw QueryException::invalidQueryComponent($dqlAlias); |
236 |
|
} |
237 |
|
|
238 |
|
$this->queryComponents[$dqlAlias] = $queryComponent; |
239 |
|
} |
240 |
|
|
241 |
|
/** |
242 |
|
* {@inheritdoc} |