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

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

WBOY
Release: 2016-07-13 09:53:27
Original
1075 people have browsed it

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

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

例子:

表commentone (多方)

表shopone(一方)

在Userbundle中的Commentone实体对应关系

在Adminbundle中的Shopone实体对应关系

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template