Hey,
I have two entity managers, one's name is *default *and the other is *
development*. I am attempting to use an entity for the Security Component
Doctrine Entity DOA provider that is mapped in the *development* entity.
However I cannot seem to use it, when I do I get the error:
Doctrine\ORM\Mapping\MappingException: Class MyCustomNameSpace\Entity\User
is not a valid entity or mapped super class
But if I set the mapping in the *default* entity manager, it works fine with
no problems.
Here is my configuration:
doctrine.orm:
default_entity_manager: development # this does not make a
difference - it still is only reading the 'default' entity manager
entity_managers:
default:
connection: default
development:
connection: development
mappings:
MyCustomBundle:
type: annotation
dir:
"%kernel.root_dir%/../src/vendor/path_to_my_entities"
prefix: MyCustomNameSpace\Entity
security.config:
providers:
main:
password_encoder: sha1
entity: { class: MyCustomNameSpace\Entity\User }
So moving the mappings under the "default" entity manager will work without
any problems.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en