Browse Source

..

tags/2.0.0-beta
Qiang Xue 13 years ago
parent
commit
409eab133e
  1. 10
      framework/db/ar/ActiveQuery.php

10
framework/db/ar/ActiveQuery.php

@ -296,4 +296,14 @@ class ActiveQuery extends BaseQuery implements \IteratorAggregate, \ArrayAccess,
}
unset($this->records[$offset]);
}
protected function findRecords($all = true)
{
$finder = new ActiveFinder($this->getDbConnection());
if (!empty($this->with)) {
return $finder->findRecordsWithRelations();
} else {
return $finder->findRecords($this, $all);
}
}
}

Loading…
Cancel
Save