Compare commits
1
Commits
v2.2.6
...
e68f55d1ea
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e68f55d1ea |
@@ -101,8 +101,8 @@ trait JoinBuilderTrait
|
||||
foreach($this->entityResolver->searchFieldAnnotationList($item, [ Where::class ]) as $condition) {
|
||||
$field = $this->joinFieldObject($condition->field, $this->entityClass);
|
||||
|
||||
# Adding directly
|
||||
if ( $field->entityClass === $entity ) {
|
||||
# Adding directly to the join
|
||||
if ( ($field->entityClass === $entity) || ($field->entityClass !== $this->entityClass) ) {
|
||||
if ($field->alias === $defaultAlias) {
|
||||
$field->alias = $this->escapeIdentifier($alias);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user