Ccdn_user_security (mappingexception)
Replies: 15   Views: 3641  Subscribers: 5

Posted by josecelano · 21-02-2014 - 17:54

I had the same problem and in my case I fixed it changing some settings:

­
resolve_target_entities:
            Symfony\Component\Security\Core\User\UserInterface: Acme\UserBundle\Entity\User        
        default_entity_manager: default
        auto_generate_proxy_classes: "%kernel.debug%"
        entity_managers:
            default:
                mappings: 
                    FOSUserBundle: ~
                    AcmeUserBundle:
                        mapping:              true
                        type:                 annotation
                        #dir:                  "Resources/config/doctrine"
                        alias:                ~
                        prefix:               Acme\UserBundle\Entity
                        is_bundle:            true
                    CCDNUserSecurityBundle:
                        mapping:              true
                        type:                 yml
                        dir:                  "Resources/config/doctrine"
                        alias:                ~
                        prefix:               CCDNUser\SecurityBundle\Entity
                        is_bundle:            true­
Because I am using annotations in my User entity instead of xml or yml files.­