Less one var.

This commit is contained in:
Juan Basso 2011-02-24 21:07:50 -03:00
parent 6e14fa8949
commit 5ab5197090

View file

@ -2171,8 +2171,7 @@ class Model extends Object {
} }
} }
$db = $this->getDataSource(); $results = $this->getDataSource()->read($this, $query);
$results = $db->read($this, $query);
$this->resetAssociations(); $this->resetAssociations();
if ($query['callbacks'] === true || $query['callbacks'] === 'after') { if ($query['callbacks'] === true || $query['callbacks'] === 'after') {