/** * Create a new morph to many relationship instance. * * @param Builder $query * @param Model $parent * @param string $name * @param string $table * @param string $foreignKey * @param string $otherKey * @param string $orderColumn * @param string $relationName * @param bool $inverse */ public function __construct(Builder $query, Model $parent, $name, $table, $foreignKey, $otherKey, $orderColumn, $relationName = null, $inverse = false) { parent::__construct($query, $parent, $name, $table, $foreignKey, $otherKey, $relationName, $inverse); $this->setOrderColumn($orderColumn); }
public function __construct(Builder $query, Model $parent, $name, $table, $foreignKey, $otherKey, $relationName = null, $inverse = false, $relation_id = null) { $this->relation_id = $relation_id; parent::__construct($query, $parent, $name, $table, $foreignKey, $otherKey, $relationName, $inverse); }