I have built my web application from Gii / Giix and all the model database successfully, except one!
That is because the Foreign Keys relation is as Restrict.
And for that reason shows up an uncontrolled error (exception):
[i]CDbCommand failed to execute the SQL statement: SQLSTATE: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (
fk_day_language_2 FOREIGN KEY (
code) ON UPDATE CASCADE). The SQL statement executed was: DELETE FROM
¿Do I something wrong? ¿Or does this mean that Yii does not control these exceptions?
If anyone can guide me…
Thank in advance!