I'll probably go ahead and do that Alex, thanks for the response :) On Nov 3, 1:20 pm, Alex Pilon <[email protected]> wrote: > I'm not sure.. I don't have a lot of experience customizing generators.. > however I would suggest that simply adding a column to hold the user entered > value would be easier than trying to manipulate symfony to use a different > kind of primary key. Primary keys are database constructs meant to uniquely > identify records. If the user is entering these they may not always be > unique, and I'm sure that the value you are entering is for another purpose > other than database integrity. I'm guessing adding a new field will work > seemlessly with the generators and not require you to change the default > behavior of things. Again however I don't work with generators much at this > point and I don't know if there is an easy way to do what you want to do > there. My perspective simply is that you would be misusing the primary key > by trying to make it a user entered value. > > > > > > > > > > On Wed, Nov 3, 2010 at 13:15, xpanshun <[email protected]> wrote: > > @ Alex, > > > I guess that is possible, but I was hoping for an easier way like > > making some type of change in the generator.yml or something of that > > nature... > > > On Nov 3, 1:04 pm, Alex Pilon <[email protected]> wrote: > > > I've only ever used the default.. but would it be a sufficient solution > > to > > > add an extra column to your model that holds this admin typed in key? You > > > can use indices to mark them as unique.. > > > > On Wed, Nov 3, 2010 at 12:56, xpanshun <[email protected]> wrote: > > > > Also, is there a way to make it so that primary key fields are even > > > > viewable? It seems they are hidden by default... > > > > > On Nov 3, 12:31 pm, xpanshun <[email protected]> wrote: > > > > > Hi all, > > > > > > I've seen this question asked before a lot but from years ago--so > > > > > there wasn't any working response. I am hoping now that its 2010, > > that > > > > > there is a solution... > > > > > > I am using Symfony 1.4. I am currently working with the admin > > > > > generator and I have some primary key fields that are NOT numeric > > auto- > > > > > increment. These fields are varchar that I need the admin to input > > > > > manually. > > > > > > Is there a way to get such a primary key--or any primary key field to > > > > > be editable or created new on the backend? > > > > > > Thanks in advance! > > > > > -- > > > > 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> > > <symfony-users%2bunsubscr...@goog legroups.com> > > > > For more options, visit this group at > > > >http://groups.google.com/group/symfony-users?hl=en > > > > -- > > > Alex Pilon > > > (613) 608-1480 > > > -- > > 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 at > >http://groups.google.com/group/symfony-users?hl=en > > -- > Alex Pilon > (613) 608-1480
-- 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
