Yii 1.1.3 is released
Posted 07 July 2010 - 07:12 AM
Posted 27 July 2010 - 05:47 PM
- Now it's not possible to reuse CActiveFinder. So if you have code like this:
$finder = Post::model()->with('comments');
$posts1 = $finder->findAll();
$posts2 = $finder->findAll();
you should rewrite it to:
$posts1 = Post::model()->with('comments');
$posts2 = Post::model()->with('comments');
Reuse of CActiveFinder is very, very, VERY useful to me. It's imperative.
I have complex AR constructions involving FINDALL, COUNT and conditions where I apply different criterias to the same CActiveFinder.
It's unimaginable to rewrite the CActiveFinder several times.
Why does it have to be changed?
Posted 03 August 2010 - 08:31 PM
It was causing serious memory leaks in PHP 5.2 and this was the only way to fix it.
There exists some thread discussing this? I reuse CActiveFinder very much in PHP 5.2 and haven't seen memory leak problems yet.