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 happens?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are not showing your warnings.. Usually when there’s a problem with a query, cake displays it like this:
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