Home  >  Article  >  Backend Development  >  symfony2-不同bundle的entity的一对多关系,symfony2-entity_PHP教程

symfony2-不同bundle的entity的一对多关系,symfony2-entity_PHP教程

WBOY
WBOYOriginal
2016-07-13 09:53:271018browse

symfony2-不同bundle的entity的一对多关系,symfony2-entity

重点:其实和普通一个bundle中一样,只是把entity地址写全就行。

例子:

表commentone (多方)

表shopone(一方)

在Userbundle中的Commentone实体对应关系

在Adminbundle中的Shopone实体对应关系

symfony2-不同bundle的entity的一对多关系,symfony2-entity_PHP教程

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn