On Tue, Sep 30, 2008 at 3:46 PM, javo <[EMAIL PROTECTED]> wrote:

> What is the easiest way to change data passed
> from the form?

Essaye comme ça :

if ($this->form->isValid())
{
  $this->form->getObject()->setName('tralala');
  $blog = $this->form->save();

Ou encore :

$this->form->bind(array_merge($request->getParameter('blog'),
array('name' => 'tralala')));
if ($this->form->isValid())
{
    $blog = $this->form->save();

++

-- 
Nicolas Perriault
http://prendreuncafe.com - http://symfonians.net - http://sensiolabs.com
Phone: +33 660 92 08 67

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to