Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用这种带有推进的语句来获取 sql 查询?
$books = BookQuery::create() ->filterByTitle('War And Peace') ->find();
我需要记录查询以进行调试
query ['SELECT book.* from `book` WHERE book.TITLE = War And Peace' ]
您可以使用该$books->toString()方法。
$books->toString()