Orm doctrine2 symfony2.1实体$showMapper中的所有字段?

Orm doctrine2 symfony2.1实体$showMapper中的所有字段?,orm,doctrine-orm,entity,symfony-2.1,Orm,Doctrine Orm,Entity,Symfony 2.1,我不知道这是否可能或者如何做到 表A 身份证件 名称 特征标识 表B id_功能 标签 网址 描述 我有2个实体,我做了一个@ORM\manytone(targetEntity=“tableB”) 在我的$showmapper中,我得到了带有标签的结果,但没有url和描述 为什么? 在我的实体中如何做到这一点 谢谢 再见已解决 我确实喜欢这个 ->add('parent1', 'entity', array('label' => 'region', 'property_path'

我不知道这是否可能或者如何做到

表A 身份证件 名称 特征标识

表B id_功能 标签 网址 描述

我有2个实体,我做了一个@ORM\manytone(targetEntity=“tableB”)

在我的$showmapper中,我得到了带有标签的结果,但没有url和描述

为什么?

在我的实体中如何做到这一点

谢谢 再见

已解决

我确实喜欢这个

->add('parent1', 'entity', array('label' => 'region', 'property_path' => 'appellation.parent.parent', 'class' => 'Application\Ghv\AdministrationBundle\Entity\Regions'))
我可以这样访问我的子属性

->add('parent1', 'entity', array('label' => 'region', 'property_path' => 'appellation.parent.parent', 'class' => 'Application\Ghv\AdministrationBundle\Entity\Regions'))