hello,

following prolbem with symfony 1.3 (and 1.2): admin generator, user/
edit view, action save: deletes parameters in database that are not
bound!

example:
schema.yml:
User:
  tableName: user
  columns:
    id:
      type: integer(4)
      primary: true
    name:string(35)
   ...

Useraddon:
  tableName: useraddon
  columns:
    id:
      type: integer(4)
      primary: true
    age:
      type: integer
    steet:
      type: string(255)
...
  relations:
    User:
      foreignAlias: Useraddon
      local: id
      foreign: id
      foreignType: one

generator.yml:
      form:
        display:
          Content: [name]

....
 $form->bind($request->getParameter($form->getName()), $request-
>getFiles($form->getName()));
      if ($form->isValid()) {
         .....
          $adresse = $form->save();
==> sets useraddon.age and useraddon.street to null!

print_r( $request->getParameter($form->getName()));
-->
Array ( [id] => 8407 [_csrf_token] => 63c5d561c2594e4ed3c587de458fb5d9
[name] => Axel )

I thought that save() or doSave() only updates bound attributes?!!!?


--

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