Hi!!
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[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (andrea_fast
.day_language
, CONSTRAINT fk_day_language_2
FOREIGN KEY (code_language
) REFERENCES language
(code
) ON UPDATE CASCADE). The SQL statement executed was: DELETE FROM language
WHERE language
.code
=‘en-US’
[/i]
¿Do I something wrong? ¿Or does this mean that Yii does not control these exceptions?
If anyone can guide me…
Thank in advance!