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

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

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

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

        $query->execute();
    }
public function deleteLayoutZones ( $ layoutId , ? int $ status = null ) : void { $ query = $ this -> connection -> createQueryBuilder ( ) ; $ query -> delete ( 'ngbm_zone' ) -> where ( $ query -> expr ( ) -> eq ( 'layout_id' , ':layout_id' ) ) -> setParameter ( 'layout_id' , $ layoutId , Type :: INTEGER ) ; if ( $ status !== null ) { $ this -> applyStatusCondition ( $ query , $ status ) ; } $ query -> execute ( ) ; }
Deletes all layout zones.

@param int|string $layoutId
@param int $status
Deletes all layout zones .