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

insertObjectStateGroup() abstract public method

Inserts a new object state group into database.
abstract public insertObjectStateGroup ( eZ\Publish\SPI\Persistence\Content\ObjectState\Group $objectStateGroup )
$objectStateGroup eZ\Publish\SPI\Persistence\Content\ObjectState\Group
    public abstract function insertObjectStateGroup(Group $objectStateGroup);

Usage Example

 /**
  * Inserts a new object state group into database.
  *
  * @param \eZ\Publish\SPI\Persistence\Content\ObjectState\Group $objectStateGroup
  */
 public function insertObjectStateGroup(Group $objectStateGroup)
 {
     try {
         return $this->innerGateway->insertObjectStateGroup($objectStateGroup);
     } 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\ObjectState\Gateway::insertObjectStateGroup