override protected function doUpdateObject($values)

protected function doUpdateObject($values)
  {
    //do something
   $this->object->something();
    parent::doUpdateObject($values);
  }
On Dec 27, 7:47 pm, dziobacz <[email protected]> wrote:
> I have table for uploaded images:
>
> Image:
>   actAs: { Timestampable: ~ }
>   columns:
>     description:
>       type: string(200)
>     name:
>       type: string(250)
>       notnull: true
>     extension:
>       type: string(10)
>       notnull: true
>     mime_type:
>       type: string(250)
>       notnull: true
>
> I have form to upload images from which I have deleted fields:
> extension and mime_type (because I don't know them before upload
> image). In action I have:
> if ($request->isMethod('post'))
> {
>       $this->form->bind(...);
>       if ($this->form->isValid())
>       {
>            .........
>           $form->save();
>       }
>
> }
>
> Is it possible to add values to fields: extension and mime_type after
> submit form and before $form->save() ??

--

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].
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