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

publishTypeAndFields() public method

Publishes the Type with $typeId from $sourceVersion to $targetVersion, including its fields.
public publishTypeAndFields ( integer $typeId, integer $sourceStatus, integer $targetStatus )
$typeId integer
$sourceStatus integer
$targetStatus integer
    public function publishTypeAndFields($typeId, $sourceStatus, $targetStatus)
    {
        try {
            return $this->innerGateway->publishTypeAndFields($typeId, $sourceStatus, $targetStatus);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }