X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/6f3158f30f33264488887f5a0c8e271cb7d17747..04441c5bddb7e62cf60aacbaf4146361d7907670:/Entity/Dance.php?ds=sidebyside diff --git a/Entity/Dance.php b/Entity/Dance.php index 796b81f..0b132c8 100644 --- a/Entity/Dance.php +++ b/Entity/Dance.php @@ -249,7 +249,7 @@ class Dance { */ public function preUpdate(PreUpdateEventArgs $eventArgs) { //Check that we have a dance instance - if (($dance = $eventArgs->getEntity()) instanceof Dance) { + if (($dance = $eventArgs->getObject()) instanceof Dance) { //Set updated value $dance->setUpdated(new \DateTime('now')); }