首页 文章

!空记录显示在蛋糕php的第一顺序

提问于
浏览
0

我有一个检索到的餐馆名单 . 当餐厅菜单是空的,餐厅显示在最后的订单..我做什么..你能帮助..

我的查询是:

$restaurantList = $this->Restaurants->find('all', [
            'conditions' => $conditions,
            'contain' => [
                'DeliveryLocations' => [
                    'conditions' => $areaLocationConditions,
                ],
                'RestaurantMenus' => [
                    'conditions' => [
                        'RestaurantMenus.status' => 1,
                        'RestaurantMenus.delete_status' => 'N'
                    ]
                ]
            ],
            'limit' => 5,
            'order' => 'Restaurants.id DESC'
        ])->hydrate(false)->toArray();

1 回答

相关问题