Skip to content

Commit b103c24

Browse files
committed
fix #613 for queries with join from is a source
1 parent 5205725 commit b103c24

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/Doctrine/ODM/PHPCR/Translation/TranslationStrategy/AttributeTranslationStrategy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
use Doctrine\ODM\PHPCR\Translation\Translation;
2727
use PHPCR\Query\QOM\ConstraintInterface;
2828
use PHPCR\Query\QOM\QueryObjectModelFactoryInterface;
29-
use PHPCR\Query\QOM\SelectorInterface;
29+
use PHPCR\Query\QOM\SourceInterface;
3030

3131
/**
3232
* Translation strategy that stores the translations in attributes of the same node.
@@ -203,7 +203,7 @@ public function getTranslatedPropertyPath($alias, $propertyName, $locale)
203203
*/
204204
public function alterQueryForTranslation(
205205
QueryObjectModelFactoryInterface $qomf,
206-
SelectorInterface &$selector,
206+
SourceInterface &$selector,
207207
ConstraintInterface &$constraint = null,
208208
$alias,
209209
$locale

lib/Doctrine/ODM/PHPCR/Translation/TranslationStrategy/ChildTranslationStrategy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
use PHPCR\Query\QOM\ConstraintInterface;
2626
use PHPCR\Query\QOM\QueryObjectModelConstantsInterface;
2727
use PHPCR\Query\QOM\QueryObjectModelFactoryInterface;
28-
use PHPCR\Query\QOM\SelectorInterface;
28+
use PHPCR\Query\QOM\SourceInterface;
2929
use PHPCR\SessionInterface;
3030

3131
/**
@@ -154,7 +154,7 @@ public function getTranslatedPropertyPath($alias, $propertyName, $locale)
154154
*/
155155
public function alterQueryForTranslation(
156156
QueryObjectModelFactoryInterface $qomf,
157-
SelectorInterface &$selector,
157+
SourceInterface &$selector,
158158
ConstraintInterface &$constraint = null,
159159
$alias,
160160
$locale

lib/Doctrine/ODM/PHPCR/Translation/TranslationStrategy/TranslationStrategyInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use PHPCR\NodeInterface;
2424
use PHPCR\Query\QOM\ConstraintInterface;
2525
use PHPCR\Query\QOM\QueryObjectModelFactoryInterface;
26-
use PHPCR\Query\QOM\SelectorInterface;
26+
use PHPCR\Query\QOM\SourceInterface;
2727

2828
/**
2929
* Operations that a translation strategy must support.
@@ -113,7 +113,7 @@ public function getTranslatedPropertyPath($alias, $propertyName, $locale);
113113
* generate a different query.
114114
*
115115
* @param QueryObjectModelFactoryInterface $qomf The PHPCR query factory.
116-
* @param SelectorInterface $selector The current selector.
116+
* @param SourceInterface $selector The current selector.
117117
* @param ConstraintInterface|null $constraint The current constraint, may be empty.
118118
* @param string $alias The selector alias of the main node.
119119
* @param string $locale The language to use.
@@ -122,7 +122,7 @@ public function getTranslatedPropertyPath($alias, $propertyName, $locale);
122122
*/
123123
public function alterQueryForTranslation(
124124
QueryObjectModelFactoryInterface $qomf,
125-
SelectorInterface &$selector,
125+
SourceInterface &$selector,
126126
ConstraintInterface &$constraint = null,
127127
$alias,
128128
$locale

0 commit comments

Comments
 (0)