public function getOrdersToPrepare()
    {
        $res = $this->createQueryBuilder('o')
            ->innerJoin('o.shippingLastStateLine', 'sl')
            ->where('sl.name = \'preparing\'')
            ->orderBy('o.updatedAt', 'ASC')
            ->getQuery()
            ->getResult();

        return $res;
    }
public function getOrdersToPrepare()
    {
        $res = $this->createQueryBuilder('o')
            ->innerJoin('o.shippingLastStateLine', 'sl')
            ->where('sl.name = \'preparing\'')
            ->orderBy('o.updatedAt', 'ASC')
            ->getQuery()
            ->getResult();

        return $res;
    }
public function getOrdersToPrepare ( ) { $ res = $ this -> createQueryBuilder ( 'o' ) -> innerJoin ( 'o.shippingLastStateLine' , 'sl' ) -> where ( 'sl.name = \'preparing\'' ) -> orderBy ( 'o.updatedAt' , 'ASC' ) -> getQuery ( ) -> getResult ( ) ; return $ res ; }
Gets the orders to prepare.

@return OrderInterface[]
Gets the orders to prepare .