public function newFromRelation(Relationship $relation)
    {
        $instance = new static($this->query, $this->parent, $this->related, $this->type, $this->attributes, $this->unique);

        $instance->setRelation($relation);

        return $instance;
    }
public function newFromRelation(Relationship $relation)
    {
        $instance = new static($this->query, $this->parent, $this->related, $this->type, $this->attributes, $this->unique);

        $instance->setRelation($relation);

        return $instance;
    }
public function newFromRelation ( Relationship $ relation ) { $ instance = new static ( $ this -> query , $ this -> parent , $ this -> related , $ this -> type , $ this -> attributes , $ this -> unique ) ; $ instance -> setRelation ( $ relation ) ; return $ instance ; }
Create a new Relation of the current instance
from an existing database relation.

@param  Everyman\Neo4j\Relationship $relation
@return static
Create a new Relation of the current instance from an existing database relation .