Hi,

im trying to give a default value to a form through this:

  public function executeNew(sfWebRequest $request)
  {
    $this->form = new MensajeForm(array('content' => 'Hola'));

  }


This is the model:

Mensaje:
  colums:
    sf_guard_user_id: integer(4)
    receptor_id: integer(4)
    tipo: integer(1)
   content: {  type: string(255)  }
  relations:
    User:
      class: sfGuarUser
      foreignType: one


When i execute mensaje/new i get this error:

-- The "MensajeForm" form only accepts a "Mensaje" object. --


Any idea?


Javi

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.


Reply via email to