Currently you can't properly use the DoctrineExtension Traits because the Flow Reflection chokes on them because the properties used in them don't declare a @var type.
I created a pull-request to get those @var types into that package :)
Currently you can't properly use the DoctrineExtension Traits because the Flow Reflection chokes on them because the properties used in them don't declare a @var type.
I created a pull-request to get those @var types into that package :)
<?php | |
/** | |
* A Report | |
* | |
* @Flow\Entity | |
* @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false) | |
*/ | |
class Foo { | |
use TimestampableEntity; | |
use SoftDeleteableEntity; | |
?> |
TYPO3: | |
Flow: | |
object: | |
excludeClasses: | |
'gedmo.doctrineextensions': ['.*'] | |
persistence: | |
doctrine: | |
filters: | |
'SoftDeleteableFilter': 'Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter' | |
eventListeners: | |
- | |
events: ['prePersist', 'onFlush', 'loadClassMetadata'] | |
listener: 'Gedmo\Timestampable\TimestampableListener' | |
- | |
events: ['loadClassMetadata', 'onFlush'] | |
listener: 'Gedmo\SoftDeleteable\SoftDeleteableListener' |