public function getRelationships(
        ObjectIdInterface $objectId,
        $includeSubRelationshipTypes,
        RelationshipDirection $relationshipDirection,
        ObjectTypeInterface $type,
        OperationContextInterface $context = null
    ) {

        if ($context === null) {
            $context = $this->getDefaultContext();
        }

        // TODO: Implement cache!

        return $this->getBinding()->getRelationshipService()->getObjectRelationships(
            $this->getRepositoryId(),
            $objectId->getId(),
            $includeSubRelationshipTypes,
            $relationshipDirection,
            $type->getId()
        );
    }
public function getRelationships(
        ObjectIdInterface $objectId,
        $includeSubRelationshipTypes,
        RelationshipDirection $relationshipDirection,
        ObjectTypeInterface $type,
        OperationContextInterface $context = null
    ) {

        if ($context === null) {
            $context = $this->getDefaultContext();
        }

        // TODO: Implement cache!

        return $this->getBinding()->getRelationshipService()->getObjectRelationships(
            $this->getRepositoryId(),
            $objectId->getId(),
            $includeSubRelationshipTypes,
            $relationshipDirection,
            $type->getId()
        );
    }
public function getRelationships ( ObjectIdInterface $ objectId , $ includeSubRelationshipTypes , RelationshipDirection $ relationshipDirection , ObjectTypeInterface $ type , OperationContextInterface $ context = null ) { if ( $ context === null ) { $ context = $ this -> getDefaultContext ( ) ; } // TODO: Implement cache! return $ this -> getBinding ( ) -> getRelationshipService ( ) -> getObjectRelationships ( $ this -> getRepositoryId ( ) , $ objectId -> getId ( ) , $ includeSubRelationshipTypes , $ relationshipDirection , $ type -> getId ( ) ) ; }
Fetches the relationships from or to an object from the repository.

@param ObjectIdInterface $objectId
@param boolean $includeSubRelationshipTypes
@param RelationshipDirection $relationshipDirection
@param ObjectTypeInterface $type
@param OperationContextInterface|null $context
@return RelationshipInterface[]
Fetches the relationships from or to an object from the repository .