0
我正在嘗試在Axon中執行以下查詢,但無法使其工作。使用它工作正常查詢 -在Axon查詢中不能包含LIMIT
SELECT user_name, email_id FROM ors_email_user WHERE email_sent=false LIMIT 5;
軸突,我嘗試做以下 -
$users = new Axon('ors_email_user');
$users->load(array('email_sent=:email_sent', array(':email_sent' => false)), '', 3);
while(!$users->dry()) {
echo 'here';
}
它永遠不會while循環中。查詢有什麼問題?有沒有一種方法可以查看實際正在形成的查詢。