Ejemplo n.º 1
0
 /**
  * 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();
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }