/** * Create a new has many relationship instance. * @return void */ public function __construct(Builder $query, Model $parent, $type, $id, $isPublic, $localKey, $relationName = null) { $this->relationName = $relationName; $this->public = $isPublic; parent::__construct($query, $parent, $type, $id, $localKey); $this->addDefinedConstraints(); }
/** * Create a new has many relationship instance. * @return void */ public function __construct(Builder $query, Model $parent, $type, $id, $localKey, $relationName = null) { $this->relationName = $relationName; parent::__construct($query, $parent, $type, $id, $localKey); }