/**
* Publishes the Type with $typeId from $sourceVersion to $targetVersion,
* including its fields.
*
* @param int $typeId
* @param int $sourceStatus
* @param int $targetStatus
*/
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);
}
}