I need to delete a row from A table. I get a 1451 error which means a constraint failed. But when i try to find this relation, nothing comes up.
mysql> delete from A where id=961;
ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key
constraint fails (`xxx`.`B`, CONSTRAINT `FK_D273C62CBE4E457A` FOREIGN KEY
(`agencementDimension_id`) REFERENCES `A` (`id`))
mysql> select * from B where agencementDimension_id=961;
Empty set (0.00 sec)
Constraints had been generated by Doctrine + Symfony 2. I have added "cascade delete" and updated schema but nothing changed "The database schema is in sync with the mapping files".