[symfony-users] Re: Admin Generator / Error
This whole thing is messed up for some reason; maybe I should just start over :/ :( On Nov 3, 7:29 pm, xpanshun wrote: > 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 wrote: > > > > > > > > > @ Alex, > > > I tried it--didn't work :( > > > Any other ideas? > > > On Nov 3, 6:46 pm, Alex Pilon wrote: > > > > Check onDelete: cascade on your relations. > > > > On Nov 3, 2010 6:03 PM, "xpanshun" 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 symfony-users@googlegroups.com > > > To unsubscribe from this group, send email to > > > symfony-users+unsubscr...@googlegroups.com > > 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Admin Generator / Error
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 wrote: > @ Alex, > > I tried it--didn't work :( > > Any other ideas? > > On Nov 3, 6:46 pm, Alex Pilon wrote: > > > > > > > > > Check onDelete: cascade on your relations. > > > On Nov 3, 2010 6:03 PM, "xpanshun" 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 symfony-users@googlegroups.com > > To unsubscribe from this group, send email to > > symfony-users+unsubscr...@googlegroups.com > 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Admin Generator / Error
@ Alex, I tried it--didn't work :( Any other ideas? On Nov 3, 6:46 pm, Alex Pilon wrote: > Check onDelete: cascade on your relations. > > On Nov 3, 2010 6:03 PM, "xpanshun" 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 symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en