-
Cannot Add or Update a Child Row: A Foreign Key Constraint Fails
I encountered this error when I tried to add a new child row using CakePhp. Checking around forums and coding sites, there is always one suggestion whenever somebody asks this question – make sure that the foreign key exists in the parent table. I made sure that the key exists in the parent table, but […]