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() ) {
|
if ( null !== $compoundKeyFields = $this->resolveEntity()->getCompoundKeyFields() ) {
|
||||||
$loaded = false;
|
$loaded = false;
|
||||||
|
|
||||||
foreach ($compoundKeyFields->column as $column) {
|
foreach ((array) $compoundKeyFields->column as $column) {
|
||||||
$field = $this->resolveEntity()->field($column);
|
$field = $this->resolveEntity()->field($column);
|
||||||
|
|
||||||
if (! $field->allowsNull() ) {
|
if (! $field->allowsNull() ) {
|
||||||
|
|||||||
@@ -101,8 +101,8 @@ trait JoinBuilderTrait
|
|||||||
foreach($this->entityResolver->searchFieldAnnotationList($item, [ Where::class ]) as $condition) {
|
foreach($this->entityResolver->searchFieldAnnotationList($item, [ Where::class ]) as $condition) {
|
||||||
$field = $this->joinFieldObject($condition->field, $this->entityClass);
|
$field = $this->joinFieldObject($condition->field, $this->entityClass);
|
||||||
|
|
||||||
# Adding directly
|
# Adding directly to the join
|
||||||
if ( $field->entityClass === $entity ) {
|
if ( ($field->entityClass === $entity) || ($field->entityClass !== $this->entityClass) ) {
|
||||||
if ($field->alias === $defaultAlias) {
|
if ($field->alias === $defaultAlias) {
|
||||||
$field->alias = $this->escapeIdentifier($alias);
|
$field->alias = $this->escapeIdentifier($alias);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user