/**
* 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);
}
}