Cakephp pagination on recursive conditions
问题 I am going mad on this issue please somebody help me :) I have this models: Order hasMany--> Orderitem hasOne--> Product Product has field vendor_id. I would like to paginate orders wich have products with a particular vendor_id. How I could achieve this? My code in the orders_controller: if(!empty($this->data['Order']['vendor_id'])) { $conditions['Product.vendor_id']=$this->data['Order']['vendor_id']; } if(!empty($this->data['Order']['startdate'])) { $conditions['Order.date >=']=$this->data[