Hi,

I am wondering why the returned object with M-M relations to another
object from a SAVED FORM is not equal to the actual objects stored in
the database. E.g. in processForm:

if ($form->isValid())
    {
      $match = $form->save();

      $this->redirect('match/listpoule?id='.$match->Poule->get('id'));
    }

In my model, a match has an M-M relation to user. The returned object
match from $form->save() holds the matchuser-objects ($match-
>MatchUsers) PRIOR to the form, and not the matchUser-objects as
result of the form!! Took me quite a while to figur out this 'bug'.

In my case I put some extra information in the linking MatchUser
table, and therefor I need the matchUser objects. As a solution, I do
a new query, but I am wondering why the $match-object does not have
the correct objects itself?

Or is this a defect?

Lambert



--~--~---------~--~----~------------~-------~--~----~
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