This may be tied to the problem, but its another problem I have nonetheless...
When clicking edit for my first few tables, they are being routed through the primary key field like: admin/1/edit But my last several tables are being routed through another field like: product/B0006/edit... Where B0006 is my second column in the table--it should be using 1 as I took your advice earlier (Alex) are modified my database schema to include an autoincrementing field for each necessary table. So, I have no idea what is going on :S On Nov 3, 7:04 pm, xpanshun <[email protected]> wrote: > @ Alex, > > I tried it--didn't work :( > > Any other ideas? > > On Nov 3, 6:46 pm, Alex Pilon <[email protected]> wrote: > > > > > > > > > Check onDelete: cascade on your relations. > > > On Nov 3, 2010 6:03 PM, "xpanshun" <[email protected]> wrote: > > > Hi all, > > > I have my backend set up and was testing out the functions (i.e. edit, > > delete, new, etc.). All was well until I tried to modify a table that > > is connected to a couple other tables. I was not even attempting to > > change the value of a fk field--I was editing a different field that > > was rather frivolous. Nonetheless, I got this error: > > > SQLSTATE[HY000]: General error: 1452 Cannot add or update a > > child row: a foreign key constraint fails > > > So why won't the update go through, even though I am not changing any > > fk field? > > > Would appreciate any guidance. Thanks a bunch... > > > -- > > If you want to report a vulnerability issue on symfony, please send it to > > security at symfony-project.com > > > You received this message because you are subscribed to the Google > > Groups "symfony users" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<symfony-users%2bunsubscr...@goog > > legroups.com> > > For more options, visit this group > > athttp://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
