eZ\Publish\Core\Persistence\Legacy\Content\Gateway::loadRelations PHP Method

loadRelations() abstract public method

Loads data of related to/from $contentId.
abstract public loadRelations ( integer $contentId, integer $contentVersionNo = null, integer $relationType = null ) : mixed[][]
$contentId integer
$contentVersionNo integer
$relationType integer
return mixed[][] Content data, array structured like {@see \eZ\Publish\Core\Persistence\Legacy\Content\Gateway::load()}
    public abstract function loadRelations($contentId, $contentVersionNo = null, $relationType = null);

Usage Example

 /**
  * Loads data of related to/from $contentId
  *
  * @param int $contentId
  * @param int $contentVersionNo
  * @param int $relationType
  *
  * @return mixed[][] Content data, array structured like {@see \eZ\Publish\Core\Persistence\Legacy\Content\Gateway::load()}
  */
 public function loadRelations($contentId, $contentVersionNo = null, $relationType = null)
 {
     try {
         return $this->innerGateway->loadRelations($contentId, $contentVersionNo, $relationType);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\Gateway::loadRelations