In other words, you need to create the Mensaje object first...
public function executeNew(sfWebRequest $request)
{
$m = new Mensaje();
$m->setContent('Hola');
$this->form = new MensajeForm($m));
}
2009/11/18 Gábor Fási :
> The first parameter of a doctrine form should be an object i
The first parameter of a doctrine form should be an object instance
(in this case: Mensaje) or null.
On Wed, Nov 18, 2009 at 15:30, tirengarfio wrote:
> Hi,
>
> im trying to give a default value to a form through this:
>
> public function executeNew(sfWebRequest $request)
> {
> $this->form =
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: