API CHANGE: #2468 - Allow pagination on getManyManyComponent

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@57779 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-07-11 00:13:17 +00:00
parent 0b0e4c32d9
commit 05c1370e27

View File

@ -951,7 +951,7 @@ class DataObject extends ViewableData implements DataObjectInterface {
$records = $query->execute();
$result = $this->buildDataObjectSet($records, "ComponentSet", $query, $componentBaseClass);
if($result) $result->parseQueryLimit($query); // for pagination support
if(!$result) {
$result = new ComponentSet();
}