l3pp4rd/DoctrineExtensions — Issue #230: Generating setter and getter is broken
Author: solzenic
Created: 2012-01-11 11:07:34+00:00
State: open

I have entities mapped by annotations. When I try to generate setter and getters in entity which doesn't use any @gedmo annotation I get following error:

PHP Fatal error: Call to a member function getProperties() on a non-object in /Users/solzenic/Development/XX/vendor/gedmo-doctrine-extensions/lib/Gedmo/Timestampable/Mapping/Driver/Annotation.php on line 67
PHP Stack trace:
PHP 1. {main}() /Users/solzenic/Development/XX/app/console:0
PHP 2. Symfony\Component\Console\Application->run() /Users/solzenic/Development/XX/app/console:16
PHP 3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /Users/solzenic/Development/XX/vendor/symfony/src/Symfony/Component/Console/Application.php:106
PHP 4. Symfony\Component\Console\Application->doRun() /Users/solzenic/Development/XX/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:75
PHP 5. Symfony\Component\Console\Command\Command->run() /Users/solzenic/Development/XX/vendor/symfony/src/Symfony/Component/Console/Application.php:193
PHP 6. Doctrine\Bundle\DoctrineBundle\Command\GenerateEntitiesDoctrineCommand->execute() /Users/solzenic/Development/XX/vendor/symfony/src/Symfony/Component/Console/Command/Command.php:237
PHP 7. Doctrine\Bundle\DoctrineBundle\Mapping\MetadataFactory->getClassMetadata() /Users/solzenic/Development/XX/vendor/bundles/Doctrine/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php:100
PHP 8. Doctrine\Bundle\DoctrineBundle\Mapping\MetadataFactory->getMetadataForClass() /Users/solzenic/Development/XX/vendor/bundles/Doctrine/Bundle/DoctrineBundle/Mapping/MetadataFactory.php:74
PHP 9. Doctrine\Bundle\DoctrineBundle\Mapping\MetadataFactory->getAllMetadata() /Users/solzenic/Development/XX/vendor/bundles/Doctrine/Bundle/DoctrineBundle/Mapping/MetadataFactory.php:149
PHP 10. Doctrine\ORM\Mapping\ClassMetadataFactory->getAllMetadata() /Users/solzenic/Development/XX/vendor/bundles/Doctrine/Bundle/DoctrineBundle/Mapping/MetadataFactory.php:165
PHP 11. Doctrine\ORM\Mapping\ClassMetadataFactory->getMetadataFor() /Users/solzenic/Development/XX/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:131
PHP 12. Doctrine\ORM\Mapping\ClassMetadataFactory->loadMetadata() /Users/solzenic/Development/XX/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:185
PHP 13. Doctrine\Common\EventManager->dispatchEvent() /Users/solzenic/Development/XX/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:334
PHP 14. Gedmo\Timestampable\TimestampableListener->loadClassMetadata() /Users/solzenic/Development/XX/vendor/doctrine-common/lib/Doctrine/Common/EventManager.php:62
PHP 15. Gedmo\Mapping\MappedEventSubscriber->loadMetadataForObjectClass() /Users/solzenic/Development/XX/vendor/gedmo-doctrine-extensions/lib/Gedmo/Timestampable/TimestampableListener.php:43
PHP 16. Gedmo\Mapping\ExtensionMetadataFactory->getExtensionMetadata() /Users/solzenic/Development/XX/vendor/gedmo-doctrine-extensions/lib/Gedmo/Mapping/MappedEventSubscriber.php:173
PHP 17. Gedmo\Mapping\Driver\Chain->readExtendedMetadata() /Users/solzenic/Development/XX/vendor/gedmo-doctrine-extensions/lib/Gedmo/Mapping/ExtensionMetadataFactory.php:91
PHP 18. Gedmo\Timestampable\Mapping\Driver\Annotation->readExtendedMetadata() /Users/solzenic/Development/XX/vendor/gedmo-doctrine-extensions/lib/Gedmo/Mapping/Driver/Chain.php:53