I did not yet test it but I asdume it should work:
class User{
  /* ... */

  public function toArray() {
     return array (
        'id' => $this->id,
        'name' => $this->name,
        /* ... */
      );
   }
}

Then in listener we have the entity object available then
$entity->toArray();
Now we should have a clean array without mapped proxy then we can convert
this array to object and we will have a clean object.

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to