eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway\ExceptionConversion::insertGroup PHP Method

insertGroup() public method

Inserts the given $group.
public insertGroup ( eZ\Publish\SPI\Persistence\Content\Type\Group $group ) : mixed
$group eZ\Publish\SPI\Persistence\Content\Type\Group
return mixed Group ID
    public function insertGroup(Group $group)
    {
        try {
            return $this->innerGateway->insertGroup($group);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }