Skip to content

Commit 26b19c6

Browse files
committed
Removed useless line in belongsTo
1 parent a79726e commit 26b19c6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Jenssegers/Mongodb/Relations/BelongsTo.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ public function addConstraints()
1414
// For belongs to relationships, which are essentially the inverse of has one
1515
// or has many relationships, we need to actually query on the primary key
1616
// of the related models matching on the foreign key that's on a parent.
17-
$table = $this->related->getTable();
18-
1917
$this->query->where($this->otherKey, '=', $this->parent->{$this->foreignKey});
2018
}
2119
}

0 commit comments

Comments
 (0)