public function getRelationship(string $name): array
    {
        if (array_key_exists($name, $this->relationships)) {
            return $this->relationships[$name];
        }

        return [];
    }
public function getRelationship(string $name): array
    {
        if (array_key_exists($name, $this->relationships)) {
            return $this->relationships[$name];
        }

        return [];
    }
public function getRelationship ( string $ name ) : array { if ( array_key_exists ( $ name , $ this -> relationships ) ) { return $ this -> relationships [ $ name ] ; } return [ ] ; }
Get a relationship as an aggregated entities' array.

@param string $name

@return array
Get a relationship as an aggregated entities array .