fixed a missing alias
This commit is contained in:
parent
c1755d250b
commit
fab70aec6a
|
@ -606,7 +606,7 @@ class Repository
|
|||
|
||||
$pkField = key($primaryKeyField);
|
||||
|
||||
return $this->where($this->entityClass::field($primaryKeyField[$pkField]->name ?? $pkField, false), $value);
|
||||
return $this->where($this->entityClass::field($primaryKeyField[$pkField]->name ?? $pkField, $alias), $value);
|
||||
}
|
||||
|
||||
public function withJoin(string|array $fields, array $options = []) : self
|
||||
|
|
Loading…
Reference in New Issue