Hi,
i would like log entity in another table if this is modified. how to get if 
the entity is modified?

Pseudo Code:

In this case, not log:

> $obj = $em->find('User\Entity\User', 1);
> $obj->setName($obj->getName());
> $em->persist($obj);
> if(.....) { $this->logObj($obj); }

$em->flush()

 
and here log

> $obj = $em->find('User\Entity\User', 1);
> $obj->setName('NEW NAME');
> $em->persist($obj);
> if(.....) { $this->logObj($obj); }

$em->flush()


Thanks! 

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