2013-04-26 130 views
0

我有兩個與多對一關係相關的實體,但每個實體都屬於一個包。 當強制在數據庫中,我得到以下錯誤關係兩個實體之間的一對多關係symfony

the target -entity cannot xxxx\Bundle1\Entity be found in xxxx\bundle2\entity 

任何想法,請更新?

+0

請更具體。至少向我們展示關係配置。 – gilden 2013-04-28 00:15:53

回答

0

只需在您的xxxx \ bundle2中創建一個擴展xxxx \ Bundle1 \ Entity的實體並在兩個xxxx \ bundle2實體之間建立關係。