Skip to content

Commit

Permalink
fix Join::hasMany seeding
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jun 1, 2022
1 parent 0401814 commit da0d2d6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Model/Join.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,6 @@ public function hasOne(string $link, array $defaults = [])
*/
public function hasMany(string $link, array $defaults = [])
{
$id_field = $this->getOwner()->id_field;
$defaults = array_merge([
'our_field' => $id_field,
'their_field' => $this->getModelTableString($this->getOwner()) . '_' . $id_field,
], $defaults);

return $this->getOwner()->hasMany($link, $defaults);
}

Expand Down

0 comments on commit da0d2d6

Please sign in to comment.