我有5個連接到數據庫,在config.yml描述和映射:MappingException當我嘗試使用我的實體類作爲ORM用戶提供
orm:
default_entity_manager: site
entity_managers:
site:
connection: siteConfig
mappings:
CSSBundle: ~
forum:
connection: forumConfig
mappings:
IPBBridgeBundle: ~
我使用CSSBundle與一些entites的第一次束,並使用IPBBridgeBundle通過IPB數據庫(「論壇」EM)進行身份驗證。 在IPBBridgeBundle我有會員單位,我設置爲security.yml
providers:
main:
entity: { class: Telnet\IPBBridgeBundle\Entity\Member, property: username }
所有除「/登錄」,「/ ligin_check」和「/註銷」的CSSBundle處理路由的用戶提供,他們」由IPBBridgeBundle(LoginController)處理。當我嘗試去/我有
Fatal error: require_once(): Cannot redeclare class telnet\ipbbridgebundle\controller\logincontroller in /var/www/vhosts/css.ilimnet.ru/www/Symfony/vendor/jms/di-extra-bundle/JMS/DiExtraBundle/HttpKernel/ControllerInjectorsWarmer.php on line 52
好吧,它更名爲ForumLoginController,但現在我有這個錯誤 - 'MappingException:類「的Telnet \ IPBBridgeBundle \實體\會員」在任何鏈配置的命名空間的Telnet \ CSSBundle \ Entity'未找到路我走了,即使不存在 – Neka
你確定它IPBBridgeBundle而不是IPBridgeBundle? –
是的,我確定,因爲IPB論壇,我檢查過任何東西,** IPBBridgeBundle ** – Neka