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

deleteFieldDefinitionsForType() abstract public method

Deletes all field definitions of a Type.
abstract public deleteFieldDefinitionsForType ( mixed $typeId, integer $status )
$typeId mixed
$status integer
    public abstract function deleteFieldDefinitionsForType($typeId, $status);

Usage Example

 /**
  * Deletes all field definitions of a Type.
  *
  * @param mixed $typeId
  * @param int $status
  */
 public function deleteFieldDefinitionsForType($typeId, $status)
 {
     try {
         return $this->innerGateway->deleteFieldDefinitionsForType($typeId, $status);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }