X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/8a58af7e48b04df76b204d8e66aadfb44c97eec2..aa392e7390d8c6abd217d09b8a646f41625a91c7:/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')); }