Hi, I am having some trouble working with the symfony forms and am hoping someone can give me a little help.
I am using the SfDoctrineGuard and SfForkedDoctrineGuardProfile plugins for user management Basically I have a bunch of venues that are each related to one user. I also have a bunch of events which are each related to one venue. I would like the user to login and then be able to create/edit events and assign them to any venue THAT BELONGS TO THEM After initially setup when creating/editing events I can select from any venue in the db. I have edited the actions for executeEdit in the events and have added this: $this->form = new eventForm($event, array('user' => Doctrine::getTable('venue')->findByUserId($this->getUser()- >getGuardUser()->getId() ))); then in the event forms i have added: $this->widgetSchema['venue_id'] = new sfWidgetFormChoice(array( 'choices' => array( $this->getOption('user') ) )); This however produces one select option that is an array of venues. I have struggled for hours to get this far and am not certain I am on the right path. Here is a simplified version of my model: Venue: id: type: integer(8) name: type: string(255) user_id: type: integer(8) relations: sfGuardUserProfile: local: user_id foreign: id foreignType: one Event: id: type: integer(8) venue_id: type: integer(8) name: type: string(255) relations: Venue: local: venue_id foreign: id type: one Please Help!!! Thanks!!! -- 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