Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个与多对一关系相关的实体,但每个实体都属于一个包。强制更新数据库时出现以下错误
the target -entity cannot xxxx\Bundle1\Entity be found in xxxx\bundle2\entity
请问有什么想法吗??
只需在您的 xxxx\bundle2 中创建一个扩展 xxxx\Bundle1\Entity 的实体,并在两个 xxxx\bundle2 实体之间建立关系。