public function getRelationships()
    {
        $relationships = array();

        foreach ($this->getProperty() as $name => $property) {
            if ($property->isRelationship()) {
                $relationships[$name] = $property;
            }
        }

        return $relationships;
    }
public function getRelationships()
    {
        $relationships = array();

        foreach ($this->getProperty() as $name => $property) {
            if ($property->isRelationship()) {
                $relationships[$name] = $property;
            }
        }

        return $relationships;
    }
public function getRelationships ( ) { $ relationships = array ( ) ; foreach ( $ this -> getProperty ( ) as $ name => $ property ) { if ( $ property -> isRelationship ( ) ) { $ relationships [ $ name ] = $ property ; } } return $ relationships ; }
Returns an array of relationships.

@return array
Returns an array of relationships .