mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Replaced DataObjectSet with ArrayList in MySQLDatabase->searchEngine().
This commit is contained in:
parent
2294ef5820
commit
a75abd5cd7
@ -825,14 +825,13 @@ class MySQLDatabase extends SS_Database {
|
||||
// Get records
|
||||
$records = DB::query($fullQuery);
|
||||
|
||||
foreach($records as $record)
|
||||
$objects = array();
|
||||
|
||||
foreach($records as $record) {
|
||||
$objects[] = new $record['ClassName']($record);
|
||||
}
|
||||
|
||||
|
||||
if(isset($objects)) $doSet = new ArrayList($objects);
|
||||
else $doSet = new ArrayList();
|
||||
|
||||
$list = new PaginatedList($doSet);
|
||||
$list = new PaginatedList(new ArrayList($objects));
|
||||
$list->setPageStart($start);
|
||||
$list->setPageLEngth($pageLength);
|
||||
$list->setTotalItems($totalCount);
|
||||
|
Loading…
Reference in New Issue
Block a user