public function getActiveZones()
    {
        $zones = $this
            ->createQueryBuilder('z')
            ->where('z.enabled = :enabled')
            ->setParameters([
                'enabled' => true,
            ])
            ->getQuery()
            ->getArrayResult();

        return new ArrayCollection($zones);
    }
public function getActiveZones()
    {
        $zones = $this
            ->createQueryBuilder('z')
            ->where('z.enabled = :enabled')
            ->setParameters([
                'enabled' => true,
            ])
            ->getQuery()
            ->getArrayResult();

        return new ArrayCollection($zones);
    }
public function getActiveZones ( ) { $ zones = $ this -> createQueryBuilder ( 'z' ) -> where ( 'z.enabled = :enabled' ) -> setParameters ( [ 'enabled' => true , ] ) -> getQuery ( ) -> getArrayResult ( ) ; return new ArrayCollection ( $ zones ) ; }
Find active zones.

@return Collection Active zones
Find active zones .