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

deleteFieldDefinitionsForType() public method

Deletes all field definitions of a Type.
public deleteFieldDefinitionsForType ( mixed $typeId, integer $status )
$typeId mixed
$status integer
    public function deleteFieldDefinitionsForType($typeId, $status)
    {
        $q = $this->dbHandler->createDeleteQuery();
        $q->deleteFrom($this->dbHandler->quoteTable('ezcontentclass_attribute'))->where($q->expr->lAnd($q->expr->eq($this->dbHandler->quoteColumn('contentclass_id'), $q->bindValue($typeId, null, \PDO::PARAM_INT)), $q->expr->eq($this->dbHandler->quoteColumn('version'), $q->bindValue($status, null, \PDO::PARAM_INT))));
        $q->prepare()->execute();
    }