How to display the SQL query ?


is it possible to display the sql query? I have a problem when inserting a new record, Yii not generate any problem but insertion is not done!





        'enableParamLogging' => true,













Thanks samdark,

I find all requests except the one that does not work, I have not found a solution. I use the method save.


Have you any idea?

Check the return value from save(). If false check if it’s a validation problem. You can replace save with validate() followed by save(false). I you use before/after functions, make sure they return proper values (false will inhibit further processing).


validate return false!!

I found the problem

is a required field :lol:

Thank you all :)