abstract public insertObjectState ( eZ\Publish\SPI\Persistence\Content\ObjectState $objectState, integer $groupId ) | ||
$objectState | eZ\Publish\SPI\Persistence\Content\ObjectState | |
$groupId | integer |
public abstract function insertObjectState(ObjectState $objectState, $groupId);
/** * Inserts a new object state into database. * * @param \eZ\Publish\SPI\Persistence\Content\ObjectState $objectState * @param int $groupId */ public function insertObjectState(ObjectState $objectState, $groupId) { try { return $this->innerGateway->insertObjectState($objectState, $groupId); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }