You are adding a virtual field to the list view - there is no form there. Your partial will have access to an object with the name of the model the admin generator is for. (I.e. if you generated a module for your Car model, your partial will have a $car object to work with.)
Sorry if I am expressing myself poorly... In a bit of a hurry. A. > -----Oorspronkelijk bericht----- > Van: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] > Namens Txus > Verzonden: woensdag 24 maart 2010 11:43 > Aan: symfony users > Onderwerp: [symfony-users] "Virtual" columns admin-generator fail > > Hi, > > I would like to add a "Virtual" column to an admin generator list. I > add a field with _ before the name and I created a partial to render > this field. All works OK with render, but I try to access the $form > varaivle I got an error. How can I obtain a ID value of the object > without the $form? Why it doesn't works? -- 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 To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.