简体   繁体   中英

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

$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.

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.

See official Doctrine documentation for more info: http://readthedocs.org/docs/doctrine/en/latest/en/manual/data-hydrators.html?highlight=hydration#on-demand

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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