public function initRelation()
    {
        // Turn models into nodes
        $this->start = $this->asNode($this->parent);
        $this->hyper = $this->asNode($this->related);
        $this->end   = $this->asNode($this->morph);

        // Not a unique relationship since it involves multiple models.
        $unique = false;

        // Setup left and right edges
        $this->left  = new EdgeOut($this->query, $this->parent, $this->related, $this->type, $this->attributes, $unique);
        $this->right = new EdgeOut($this->query, $this->related, $this->morph, $this->morphType, $this->attributes, $unique);
        // Set the morph type to the relationship so that we know who we're talking to.
        $this->right->morph_type = get_class($this->morph);
    }
public function initRelation()
    {
        // Turn models into nodes
        $this->start = $this->asNode($this->parent);
        $this->hyper = $this->asNode($this->related);
        $this->end   = $this->asNode($this->morph);

        // Not a unique relationship since it involves multiple models.
        $unique = false;

        // Setup left and right edges
        $this->left  = new EdgeOut($this->query, $this->parent, $this->related, $this->type, $this->attributes, $unique);
        $this->right = new EdgeOut($this->query, $this->related, $this->morph, $this->morphType, $this->attributes, $unique);
        // Set the morph type to the relationship so that we know who we're talking to.
        $this->right->morph_type = get_class($this->morph);
    }
public function initRelation ( ) { // Turn models into nodes $ this -> start = $ this -> asNode ( $ this -> parent ) ; $ this -> hyper = $ this -> asNode ( $ this -> related ) ; $ this -> end = $ this -> asNode ( $ this -> morph ) ; // Not a unique relationship since it involves multiple models. $ unique = false ; // Setup left and right edges $ this -> left = new EdgeOut ( $ this -> query , $ this -> parent , $ this -> related , $ this -> type , $ this -> attributes , $ unique ) ; $ this -> right = new EdgeOut ( $ this -> query , $ this -> related , $ this -> morph , $ this -> morphType , $ this -> attributes , $ unique ) ; // Set the morph type to the relationship so that we know who we're talking to. $ this -> right -> morph_type = get_class ( $ this -> morph ) ; }
Initialize the relationship by setting up nodes and edges,

@return void

@throws  \Vinelab\NeoEloquent\NoEdgeDirectionException If $direction is not set on the inheriting relation.
Initialize the relationship by setting up nodes and edges