public function preFlush(\Doctrine\ORM\Event\PreFlushEventArgs $args) { $this->preFlushCalled = true; }