protected function getRelationalField($relationalArray)
    {
        list($relation, $field) = $relationalArray;
        if (! method_exists($this, $relation)) {
            throw new RelationshipNotDefinedException();
        }

        return $this[$relation][$field];
    }
protected function getRelationalField($relationalArray)
    {
        list($relation, $field) = $relationalArray;
        if (! method_exists($this, $relation)) {
            throw new RelationshipNotDefinedException();
        }

        return $this[$relation][$field];
    }
protected function getRelationalField ( $ relationalArray ) { list ( $ relation , $ field ) = $ relationalArray ; if ( ! method_exists ( $ this , $ relation ) ) { throw new RelationshipNotDefinedException ( ) ; } return $ this [ $ relation ] [ $ field ] ; }
Return the field value from the relationship

@param $relationalArray
@return mixed
@throws RelationshipNotDefinedException
Return the field value from the relationship