public abstract function insertContentObject(CreateStruct $struct, $currentVersionNo = 1);
/** * Inserts a new content object. * * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct * @param mixed $currentVersionNo * * @return int ID */ public function insertContentObject(CreateStruct $struct, $currentVersionNo = 1) { try { return $this->innerGateway->insertContentObject($struct, $currentVersionNo); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }