Skip to content

Commit 86ad4a7

Browse files
committed
mongodb#1930 add missing parent calls
1 parent 9381909 commit 86ad4a7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Relations/EmbedsOneOrMany.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ abstract class EmbedsOneOrMany extends Relation
4242
*/
4343
public function __construct(Builder $query, Model $parent, Model $related, string $localKey, string $foreignKey, string $relation)
4444
{
45+
parent::__construct($query, $parent);
46+
4547
$this->query = $query;
4648
$this->parent = $parent;
4749
$this->related = $related;

src/Schema/Blueprint.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ class Blueprint extends \Illuminate\Database\Schema\Blueprint
4343
*/
4444
public function __construct(Connection $connection, string $collection)
4545
{
46+
parent::__construct($collection);
47+
4648
$this->connection = $connection;
4749

4850
$this->collection = $this->connection->getCollection($collection);

0 commit comments

Comments
 (0)