but wouldn't his 'requires=' catch this before it even gets to the db? On Friday, January 4, 2013 3:51:30 PM UTC-7, Michele Comitini wrote: > > Possible solutions: > > 1. Probably Bruno Rocha can help you better, so you can try to post a > issue on github. > 2. You can find what is the "parent_id" you are trying to insert then > create an appropriate record with the needed "id". > 3. In case you don't have anything of value in the database just clean > drop the mysql database and create a new one. > > > > > 2013/1/4 samuel bonilla <[email protected] <javascript:>> > >> I can do to fix this problem ? >> >> >> >> El jueves, 3 de enero de 2013 20:30:53 UTC-5, samuel bonilla escribió: >> >>> this is the error >>> >>> <class '_mysql_exceptions.**IntegrityError'> (1452, 'Cannot add or >>> update a child row: a foreign key constraint fails (`samuel$otra`.`article_ >>> **category`, CONSTRAINT `article_category_ibfk_1` FOREIGN KEY >>> (`parent_id`) REFERENCES `article_category` (`id`) ON DELETE CASCADE)') >>> >>> help me please.... >>> >> -- >> >> >> >> > >
--

