$this->donate = null;
$this->link = null;
$this->profile = null;
+ $this->location = null;
$this->created = new \DateTime('now');
$this->updated = new \DateTime('now');
- $this->location = null;
}
/**
/**
* {@inheritdoc}
*/
- public function preUpdate(\Doctrine\ORM\Event\PreUpdateEventArgs $eventArgs) {
+ 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'));
}