eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::loadObjectStateDataForContent PHP Method

loadObjectStateDataForContent() public method

Loads object state data for $contentId content from $stateGroupId state group.
public loadObjectStateDataForContent ( integer $contentId, integer $stateGroupId ) : array
$contentId integer
$stateGroupId integer
return array
    public function loadObjectStateDataForContent($contentId, $stateGroupId)
    {
        try {
            return $this->innerGateway->loadObjectStateDataForContent($contentId, $stateGroupId);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }