php - Doctrine Resolve_target_entity in config -
i found on doctrine website page: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/cookbook/resolve-target-entity-listener.html
a way let entity communicate interface can configurable. problem cant find anywhere how put in array config. checked configuration source there nothing in docs: https://github.com/doctrine/doctrineormmodule/blob/master/docs/configuration.md
hope can help
thanks
you can use this:
'doctrine' => array( 'entity_resolver' => array( 'orm_default' => array( 'resolvers' => array( 'mymodule\entity\foointerface' => 'othermodule\entity\foo', ), ), ),
we use e.g. here (as live example) in soflomo\blog.
Comments
Post a Comment