Skip to content

Commit a0f4d4d

Browse files
committed
#1930 removed duplicate assignments
1 parent 0645c48 commit a0f4d4d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Relations/EmbedsOneOrMany.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ public function __construct(Builder $query, Model $parent, Model $related, strin
4545
{
4646
parent::__construct($query, $parent);
4747

48-
$this->query = $query;
49-
$this->parent = $parent;
5048
$this->related = $related;
5149
$this->localKey = $localKey;
5250
$this->foreignKey = $foreignKey;
@@ -57,8 +55,6 @@ public function __construct(Builder $query, Model $parent, Model $related, strin
5755
if ($parentRelation) {
5856
$this->query = $parentRelation->getQuery();
5957
}
60-
61-
$this->addConstraints();
6258
}
6359

6460
/** @inheritdoc */

0 commit comments

Comments
 (0)