Commit 26b19c63 authored by Jens Segers's avatar Jens Segers

Removed useless line in belongsTo

parent a79726e6
...@@ -14,8 +14,6 @@ class BelongsTo extends \Illuminate\Database\Eloquent\Relations\BelongsTo { ...@@ -14,8 +14,6 @@ class BelongsTo extends \Illuminate\Database\Eloquent\Relations\BelongsTo {
// For belongs to relationships, which are essentially the inverse of has one // For belongs to relationships, which are essentially the inverse of has one
// or has many relationships, we need to actually query on the primary key // or has many relationships, we need to actually query on the primary key
// of the related models matching on the foreign key that's on a parent. // of the related models matching on the foreign key that's on a parent.
$table = $this->related->getTable();
$this->query->where($this->otherKey, '=', $this->parent->{$this->foreignKey}); $this->query->where($this->otherKey, '=', $this->parent->{$this->foreignKey});
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment