如何从ChoiceListInterface类中访问Doctrine?

时间:2012-04-18 14:13:26

标签: php symfony doctrine-orm

我需要根据我的一个实体类中包含的信息填充选择列表,但是我无法从我的类中访问扩展ChoiceListInterface的Doctrine。如何从类中查询正确的实体?

1 个答案:

答案 0 :(得分:0)

你应该使用/ extend EntityChoiceList接口!

的Symfony \桥\学说\表格\选择列表\ EntityChoiceList