doctrine2 symfony2.1实体$ showMapper中的所有字段?
问题描述:
我不知道这是可以或不可以或如何做到这一点
表A ID 名 FEATURE_ID ...
表B id_feature 标签 网址 描述 。我有一个@ORM \ ManyToOne(targetEntity =“tableB”)
在我的$ showmapper中,我得到了带有标签的结果,但没有使用url,描述
为什么?
如何在我的实体中做到这一点?
感谢 再见
答
解决...
我喜欢这个
->add('parent1', 'entity', array('label' => 'region', 'property_path' => 'appellation.parent.parent', 'class' => 'Application\Ghv\AdministrationBundle\Entity\Regions'))
我可以存取权限我的子属性这样