Cakephp - find() function outputting query
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
精彩评论