我需要将以下 mysql 条件转换为 Cakephp 查找条件。
select * from bookings where (check_out_date - check_in_date) <=600 ;
请帮帮我。
最佳答案
$this->Booking->find('all', array(
'conditions' => array(
'(Booking.check_out_date - Booking.check_in_date) <=' => 600
)
));
关于mysql - 在 cakephp 上使用算术查找条件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14155266/