开发者

Cakephp - find() function outputting query

开发者 https://www.devze.com 2023-03-30 23:50 出处:网络
When using the find() function in methods CakePHP outputs the query like so: `Query: SELECT `Fonyker`.`id`, `Fonyker`.`fonykid`, `Fonyker`.`email`, `Fonyker`.`username`,` etc

When using the find() function in methods CakePHP outputs the query like so:

`Query: SELECT `Fonyker`.`id`, `Fonyker`.`fonykid`, `Fonyker`.`email`, `Fonyker`.`username`,` etc

Any idea why this ha开发者_运维百科ppens?


You are not showing your warnings.. Usually when there's a problem with a query, cake displays it like this:

Warning (512): SQL Error: 1054: <your error> [CORE/cake/libs/model/datasources/dbo_source.php, line 684]

Query: SELECT `Fonyker`.`id`, `Fonyker`.`fonykid ....

It seems to me that you're just hiding the Warning (maybe in the php configuration or in cake's configuration?)

try to run the query directly in the database and check if there are any errors

Hope this helps

0

精彩评论

暂无评论...
验证码 换一张
取 消