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.
我有这个代码:
$room_chan = RoomChannelQuery::create() ->filterByChannel($hotel_channel->getChannel()) ->filterByRoom($res_room->getRoom()) ->findOneByIdCamera($res_room->getRoom()->getId());
如何在 php 中查看查询执行情况?
查询执行是什么意思?
如果你的意思是,转储 sql,它可以这样做:
$params = array(); $sql = BasePeer::createSelectSql($room_chan, $params); var_dump($sql);
或者
var_dump($room_chan->toString());