Re: [symfony-users] Trying to set a field in executeUpdate()

2011-03-10 Thread Francesco Levorato
Hi Javier, it's not possible to set values on a form like that. Forms implement the ArrayAccess interface to let you access form fields in the form of an array, even if $form is an object. You can update a value of an object directly manipulating the object with $this-process. You may also check

[symfony-users] Trying to set a field in executeUpdate()

2011-03-09 Thread Javier Garcia
Hi, I have just generated a module and I'm trying to set the value of a field before saving it this way: public function executeUpdate(sfWebRequest $request) { $this-process = $this-getRoute()-getObject(); $this-form = $this-configuration-getForm($this-process);