*/
public function preUpdate(PreUpdateEventArgs $eventArgs) {
//Check that we have an application instance
- if (($application = $eventArgs->getEntity()) instanceof Application) {
+ if (($application = $eventArgs->getObject()) instanceof Application) {
//Set updated value
$application->setUpdated(new \DateTime('now'));
}
*/
public function preUpdate(PreUpdateEventArgs $eventArgs) {
//Check that we have an country instance
- if (($country = $eventArgs->getEntity()) instanceof Country) {
+ if (($country = $eventArgs->getObject()) instanceof Country) {
//Set updated value
$country->setUpdated(new \DateTime('now'));
}
*/
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'));
}
*/
public function preUpdate(PreUpdateEventArgs $eventArgs): ?GoogleCalendar {
//Check that we have an snippet instance
- if (($entity = $eventArgs->getEntity()) instanceof GoogleCalendar) {
+ if (($entity = $eventArgs->getObject()) instanceof GoogleCalendar) {
//Set updated value
return $entity->setUpdated(new \DateTime('now'));
}
*/
public function preUpdate(PreUpdateEventArgs $eventArgs): ?GoogleToken {
//Check that we have an snippet instance
- if (($entity = $eventArgs->getEntity()) instanceof GoogleToken) {
+ if (($entity = $eventArgs->getObject()) instanceof GoogleToken) {
//Set updated value
return $entity->setUpdated(new \DateTime('now'));
}
*/
public function preUpdate(PreUpdateEventArgs $eventArgs) {
//Check that we have a location instance
- if (($location = $eventArgs->getEntity()) instanceof Location) {
+ if (($location = $eventArgs->getObject()) instanceof Location) {
//Set updated value
$location->setUpdated(new \DateTime('now'));
}
*/
public function preUpdate(PreUpdateEventArgs $eventArgs) {
//Check that we have a slot instance
- if (($slot = $eventArgs->getEntity()) instanceof Slot) {
+ if (($slot = $eventArgs->getObject()) instanceof Slot) {
//Set updated value
$slot->setUpdated(new \DateTime('now'));
}
*/
public function preUpdate(PreUpdateEventArgs $eventArgs) {
//Check that we have an snippet instance
- if (($snippet = $eventArgs->getEntity()) instanceof Snippet) {
+ if (($snippet = $eventArgs->getObject()) instanceof Snippet) {
//Set updated value
$snippet->setUpdated(new \DateTime('now'));
}