public function loadContentInfoByRemoteId($remoteId)
    {
        $queryBuilder = $this->createLoadContentInfoQueryBuilder();
        $queryBuilder
            ->where('c.remote_id = :id')
            ->setParameter('id', $remoteId, ParameterType::STRING);

        $results = $queryBuilder->execute()->fetchAll(FetchMode::ASSOCIATIVE);
        if (empty($results)) {
            throw new NotFound('content', "remote_id: $remoteId");
        }

        return $results[0];
    }
public function loadContentInfoByRemoteId($remoteId)
    {
        $queryBuilder = $this->createLoadContentInfoQueryBuilder();
        $queryBuilder
            ->where('c.remote_id = :id')
            ->setParameter('id', $remoteId, ParameterType::STRING);

        $results = $queryBuilder->execute()->fetchAll(FetchMode::ASSOCIATIVE);
        if (empty($results)) {
            throw new NotFound('content', "remote_id: $remoteId");
        }

        return $results[0];
    }
public function loadContentInfoByRemoteId ( $ remoteId ) { $ queryBuilder = $ this -> createLoadContentInfoQueryBuilder ( ) ; $ queryBuilder -> where ( 'c.remote_id = :id' ) -> setParameter ( 'id' , $ remoteId , ParameterType :: STRING ) ; $ results = $ queryBuilder -> execute ( ) -> fetchAll ( FetchMode :: ASSOCIATIVE ) ; if ( empty ( $ results ) ) { throw new NotFound ( 'content' , "remote_id: $remoteId" ) ; } return $ results [ 0 ] ; }
Loads info for a content object identified by its remote ID.

Returns an array with the relevant data.

@param mixed $remoteId

@throws \eZ\Publish\Core\Base\Exceptions\NotFoundException

@return array
Loads info for a content object identified by its remote ID .