2012-10-26 18 views
0

我得到這個錯誤MappingException當我把我的實體提供部分

MappingException: The class 'Telnet\IPBBridgeBundle\Entity\Member' was not found in the chain configured namespaces Telnet\CSSBundle\Entity 

我有2束與實體和多個連接成學說配置

orm: 
    default_entity_manager: site 
    entity_managers: 
     site: 
      connection: siteConfig 
      mappings: 
       CSSBundle: ~ 
     forum: 
      connection: forumConfig 
      mappings: 
       IPBBridgeBundle: ~ 

,這爲供應商

providers: 
    main: 
     entity: { class: Telnet\IPBBridgeBundle\Entity\Member, property: username } 

我在做什麼錯了?

+0

當我將成員實體替換爲CSSBundle時 - 沒有錯誤。我無法理解,它在哪裏找到CSSBundle命名空間 – Neka

回答

0

SecurityBundle使用默認實體管理器和實體,實現UserInterface必須由默認實體管理器來處理。

相關問題