showing DB error

Hi,

I cannot delete CActiveRecord object. When I call model->delete(), it returns false. Probably something wrong happened on database layer. How can I get error message for failed call of CActiveRecord::delete()? Method getErrors() gives me empty array.

Thank you for help.

Did you try to activate de web logs?

Put in your main config file


"log" => array(

array('class' => 'CWebLogRoute',),

),

At the bottom of your web page you’ll see what yii is doing when generating the page.

Maybe you’ll see what is wrong!