Hi,
This code would by correct for that?
protected $ifModified;
> /**
> * @ORM\PreUpdate
> */
> public function preUpdate($eventArgs) {
> foreach($eventArgs->getEntityChangeSet() as $var => $values) {
> if($values[0] != $values[1]) {
> $this->isModified = true;
> }
> }
> }
or have another method ?
thx for the help!!!
El sábado, 19 de julio de 2014 14:45:05 UTC+2, Parsifal escribió:
>
> I think you should implement an eventListener with preUpdate() method and
> use getScheduled***() methods in it. You can see the list of
> getScheduled***() methods in API site. Marco will correct me if I am wrong.
>
--
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.