在CollectionType形式中使用查询生成器 [英] Use query builder in form CollectionType

查看:71
本文介绍了在CollectionType形式中使用查询生成器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在我的collectionType中使用查询生成器或其他工具?

Is it possible to use a query builder or something else in my collectionType ?

推荐答案

如本

You have two options as explained in this doc after that you could use the entity_manager to extract your data from database and fill your collection.

尝试一下,希望对您有帮助

Give it a try and hope it helps

这篇关于在CollectionType形式中使用查询生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆