0

I don't know if this is possible or not or how to do this

Table A id name feature_id ...

Table B id_feature label url description ...

I got 2 entity, i do a @ORM\ManyToOne(targetEntity="tableB")

In my $showmapper i got result with label, but not with url, description

Why ?

how to do that in my entity ?

Thanks Bye

4

1 に答える 1

0

解決...

私はこれが好きです

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

このようにサブプロパティにアクセスできます

于 2013-03-19T15:38:10.423 に答える