lib/Persistence/Doctrine/QueryHandler/LayoutQueryHandler.php
public function deleteZone($layoutId, string $zoneIdentifier, ?int $status = null): void
    {
        $query = $this->connection->createQueryBuilder();
        $query->delete('ngbm_zone')
            ->where(
                $query->expr()->andX(
                    $query->expr()->eq('layout_id', ':layout_id'),
                    $query->expr()->eq('identifier', ':identifier')
                )
            )
            ->setParameter('layout_id', $layoutId, Type::INTEGER)
            ->setParameter('identifier', $zoneIdentifier, Type::STRING);

        if ($status !== null) {
            $this->applyStatusCondition($query, $status);
        }

        $query->execute();
    }
public function deleteZone($layoutId, string $zoneIdentifier, ?int $status = null): void
    {
        $query = $this->connection->createQueryBuilder();
        $query->delete('ngbm_zone')
            ->where(
                $query->expr()->andX(
                    $query->expr()->eq('layout_id', ':layout_id'),
                    $query->expr()->eq('identifier', ':identifier')
                )
            )
            ->setParameter('layout_id', $layoutId, Type::INTEGER)
            ->setParameter('identifier', $zoneIdentifier, Type::STRING);

        if ($status !== null) {
            $this->applyStatusCondition($query, $status);
        }

        $query->execute();
    }
public function deleteZone ( $ layoutId , string $ zoneIdentifier , ? int $ status = null ) : void { $ query = $ this -> connection -> createQueryBuilder ( ) ; $ query -> delete ( 'ngbm_zone' ) -> where ( $ query -> expr ( ) -> andX ( $ query -> expr ( ) -> eq ( 'layout_id' , ':layout_id' ) , $ query -> expr ( ) -> eq ( 'identifier' , ':identifier' ) ) ) -> setParameter ( 'layout_id' , $ layoutId , Type :: INTEGER ) -> setParameter ( 'identifier' , $ zoneIdentifier , Type :: STRING ) ; if ( $ status !== null ) { $ this -> applyStatusCondition ( $ query , $ status ) ; } $ query -> execute ( ) ; }
Deletes the zone.

@param int|string $layoutId
@param string $zoneIdentifier
@param int $status
Deletes the zone .