コード例 #1
0
ファイル: HyperEdge.php プロジェクト: bobflay/NeoEloquent
 /**
  * Create a new HyperEdge instance.
  *
  * @param Vinelab\NeoEloquent\Eloquent\Builder $query
  * @param Vinelab\NeoEloquent\Eloquent\Model   $parent
  * @param string  $type
  * @param Vinelab\NeoEloquent\Eloquent\Model   $related
  * @param string  $morphType
  * @param Vinelab\NeoEloquent\Eloquent\Model   $morph
  */
 public function __construct(Builder $query, Model $parent, $type, Model $related, $morphType, Model $morph, $attributes = array())
 {
     $this->morph = $morph;
     $this->morphType = $morphType;
     // This is not a unique relationship since it involves multiple models.
     $unique = false;
     parent::__construct($query, $parent, $related, $type, $attributes, $unique);
 }
コード例 #2
0
 /**
  * Create a new HyperEdge instance.
  *
  * @param Vinelab\NeoEloquent\Eloquent\Builder $query
  * @param Vinelab\NeoEloquent\Eloquent\Model   $parent
  * @param string  $type
  * @param Vinelab\NeoEloquent\Eloquent\Model   $related
  * @param string  $morphType
  * @param Vinelab\NeoEloquent\Eloquent\Model   $morph
  */
 public function __construct(Builder $query, Model $parent, $type, Model $related, $morphType, Model $morph, $attributes = array())
 {
     $this->morph = $morph;
     $this->morphType = $morphType;
     parent::__construct($query, $parent, $related, $type, $attributes, $unique = false);
 }