Compare commits
3
Commits
v2.2.6
..
b0e28591ff
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b0e28591ff | ||
|
|
a3d24fbb18 | ||
|
|
e68f55d1ea |
No files matched your search
+1
-1
@@ -193,7 +193,7 @@ trait EntityTrait {
|
||||
if ( null !== $compoundKeyFields = $this->resolveEntity()->getCompoundKeyFields() ) {
|
||||
$loaded = false;
|
||||
|
||||
foreach ($compoundKeyFields->column as $column) {
|
||||
foreach ((array) $compoundKeyFields->column as $column) {
|
||||
$field = $this->resolveEntity()->field($column);
|
||||
|
||||
if (! $field->allowsNull() ) {
|
||||
|
||||
@@ -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