Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要根据我的一个实体类中包含的信息填充选择列表,但我无法从扩展 ChoiceListInterface 的类中访问 Doctrine。如何从类中查询正确的实体?
您应该使用/扩展 EntityChoiceList 接口!
Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList