Beispiel #1
0
 public function __construct(Builder $query, Model $parent, $foreignKey, $otherKey, $type, $relationName)
 {
     $this->relationName = $relationName;
     parent::__construct($query, $parent, $foreignKey, $otherKey, $type, $relationName);
     $this->addDefinedConstraints();
 }
Beispiel #2
0
 /**
  * Create a new morph to relationship instance.
  *
  * @param  \Illuminate\Database\Eloquent\Builder  $query
  * @param  \Illuminate\Database\Eloquent\Model  $parent
  * @param  string  $foreignKey
  * @param  string  $otherKey
  * @param  string  $type
  * @param  string  $relation
  * @return void
  */
 public function __construct(Builder $query, Model $parent, $foreignKey, $otherKey, $type, $relation, $map)
 {
     $this->map = $map;
     parent::__construct($query, $parent, $foreignKey, $otherKey, $type, $relation);
 }