Which action are you in, executeNew(), executeCreate(), executeEdit() or any other one?
The thing in general is that the defaults are used for filling the widgets with default data when you render the form for displaying it to the user. It's not taken into the object itself when you are about to save the object (e.g. as a consequence from a submit by the user). My personal solution here to set the data directly into the form's object: $supportTicket = $this->form->getObject(); $supportTicket->set('customer_id', $this->getUser()- >getAttribute('customer_id')); // there are alternatives to this setter function, but this one should work for sure Hope that helps, RAPHAEL -- 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