简体   繁体   English

教义1.2无缓冲查询

[英]Doctrine 1.2 Unbuffered Query

I've been using symfony 2 for quite sometime already and Doctrine 2 has a way to mass select via unbuffered query ie 我已经使用symfony 2已有一段时间了,Doctrine 2可以通过无缓冲查询来批量选择

$query->iterate();

Now I have to work on some legacy software that's using Symfony 1.4 w/ Doctrine 1.2 and it would be quite useful to have something like that, but unfortunately I can't seem to find it anywhere in the documentation. 现在,我必须处理一些使用Symfony 1.4 w / Doctrine 1.2的旧软件,拥有这样的东西将非常有用,但是不幸的是,我似乎无法在文档的任何地方找到它。

Any suggestions? 有什么建议么?

Thanks! 谢谢!

I'm not sure if it's an exact replacement, but Doctrine_Core::HYDRATE_ON_DEMAND hydration may be what you're looking for. 我不确定这是否是确切的替代品,但您可能正在寻找Doctrine_Core :: HYDRATE_ON_DEMAND保湿。

See official Doctrine documentation for more info: http://readthedocs.org/docs/doctrine/en/latest/en/manual/data-hydrators.html?highlight=hydration#on-demand 有关更多信息,请参见官方Doctrine文档: http ://readthedocs.org/docs/doctrine/en/latest/en/manual/data-hydrators.html?highlight=hydration#on-demand

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM