- WIp on Migration for mssql
This commit is contained in:
1 parent
fb4985160a
commit
c719e4a6d1
4 files changed
+33
-6
No files matched your search
@@ -264,7 +264,7 @@ class RelationBuilder
|
||||
{
|
||||
$relation->entity ??= $this->resolver->reflectedClass->getProperties()[$name]->getTypes()[0]->type;
|
||||
|
||||
$this->repository = $relation->entity::repository();
|
||||
$this->repository ??= $relation->entity::repository();
|
||||
|
||||
$this->applyWhere();
|
||||
|
||||
@@ -282,7 +282,7 @@ class RelationBuilder
|
||||
|
||||
if (isset($value)) {
|
||||
#$this->repository->where( is_object($relation->foreignKey) ? $relation->foreignKey : $relation->entity::field($relation->foreignKey), $value );
|
||||
$this->repository->where( $relation->foreignKey($this->repository), $value );
|
||||
$this->repository->where($relation->foreignKey($this->repository), $value);
|
||||
}
|
||||
else {
|
||||
$this->repository->where(Sql::raw('TRUE'), Sql::raw('FALSE'));
|
||||
@@ -296,7 +296,7 @@ class RelationBuilder
|
||||
{
|
||||
extract($this->relationAnnotations($name, $relation));
|
||||
|
||||
$this->repository = $relationRelation->entity::repository();
|
||||
$this->repository ??= $relationRelation->entity::repository();
|
||||
|
||||
$bridgeAlias = $relation->bridgeField ?? uniqid("bridge_");
|
||||
|
||||
|
||||
Reference in new issue
Block a user