We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a79726e commit 26b19c6Copy full SHA for 26b19c6
src/Jenssegers/Mongodb/Relations/BelongsTo.php
@@ -14,8 +14,6 @@ public function addConstraints()
14
// For belongs to relationships, which are essentially the inverse of has one
15
// or has many relationships, we need to actually query on the primary key
16
// of the related models matching on the foreign key that's on a parent.
17
- $table = $this->related->getTable();
18
-
19
$this->query->where($this->otherKey, '=', $this->parent->{$this->foreignKey});
20
}
21
0 commit comments