PHP头条
热点:

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


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

例子:

表commentone (多方)

表shopone(一方)

在Userbundle中的Commentone实体对应关系

在Adminbundle中的Shopone实体对应关系

在controller中使用:

 

数据库结果:

表shopone

 

表comment

 

 

www.phpzy.comtrue/php/36803.htmlTechArticlesymfony2-不同bundle的entity的一对多关系,symfony2-entity 重点:其实和普通一个bundle中一样,只是把entity地址写全就行。 例子: 表commentone (多方) 表shopone(一方) 在Userbundle中的Commenton...

相关文章

    暂无相关文章

PHP之友评论

今天推荐