Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FatalErrorException: Error: Call to undefined method PathToMyEntityClass::setAction()
- in /path/to/vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/LoggableListener.php line 225
- at ErrorHandler->handleFatal() in /path/to/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php line 0
- at LoggableListener->createLogEntry() in /path/to/vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/LoggableListener.php line 188
- at LoggableListener->onFlush() in /path/to/vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php line 61
- at ContainerAwareEventManager->dispatchEvent() in /path/to/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php line 306
- at UnitOfWork->commit() in /path/to/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php line 355
- at EntityManager->flush() in /Path/To/My/Bundle/Controller.php line 364
- at Controller->addEntityAction() in /Path/To/app/bootstrap.php.cache line 2891
- at ??call_user_func_array() in /Path/To/app/bootstrap.php.cache line 2891
- at HttpKernel->handleRaw() in /Path/To/app/bootstrap.php.cache line 2865
- at HttpKernel->handle() in /Path/To/app/bootstrap.php.cache line 2994
- at ContainerAwareHttpKernel->handle() in /Path/To/app/bootstrap.php.cache line 2274
- at Kernel->handle() in /Path/To/web/app_dev.php line 28
- at ??{main}() in /Path/To/web/app_dev.php line 0
- foreach ($ea->getScheduledObjectInsertions($uow) as $object) {
- $this->createLogEntry(self::ACTION_CREATE, $object, $ea);
- }
- public function onFlush(EventArgs $eventArgs)
- {
- $ea = $this->getEventAdapter($eventArgs);
- $om = $ea->getObjectManager();
- $uow = $om->getUnitOfWork();
- foreach ($ea->getScheduledObjectInsertions($uow) as $object) {
- $this->createLogEntry(self::ACTION_CREATE, $object, $ea);
- }
- foreach ($ea->getScheduledObjectUpdates($uow) as $object) {
- $this->createLogEntry(self::ACTION_UPDATE, $object, $ea);
- }
- foreach ($ea->getScheduledObjectDeletions($uow) as $object) {
- $this->createLogEntry(self::ACTION_REMOVE, $object, $ea);
- }
- }
- /** @var GedmoLoggableEntityLogEntry $logEntry */
- $logEntry = $logEntryMeta->newInstance();
- use GedmoMappingAnnotation as Gedmo;
- /**
- * @GedmoLoggable(logEntryClass="MyBundlesThisBundleThisEntity")
- */
- /**
- * @ORMColumn(type="string", length=30, nullable=false)
- * @AssertLength(max=30)
- * @GedmoVersioned
- */
- protected $name;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement