solves memory exhaustion upon generateCorrelation

pull/217/head
Christophe Vandeplas 2013-06-24 15:18:16 +02:00
parent aac88f16ce
commit 592180700e
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ class AppController extends Controller {
$this->loadModel('Attribute');
$fields = array('Attribute.id', 'Attribute.event_id', 'Attribute.private', 'Attribute.cluster', 'Event.date', 'Event.org');
// get all attributes..
$attributes = $this->Attribute->find('all',array('recursive' => 0));
$attributes = $this->Attribute->find('all', array('recursive' => -1));
// for all attributes..
foreach ($attributes as $attribute) {
$this->Attribute->__afterSaveCorrelation($attribute['Attribute']);