FIX: Revert last commit (from r114463)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@114547 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-12-05 08:44:37 +00:00
parent 8638221adb
commit aaf56e190f

View File

@ -823,11 +823,8 @@ class MySQLDatabase extends SS_Database {
$records = DB::query($fullQuery);
foreach($records as $record)
if(!$record['ClassName']){
throw new Exception("ClassName can not be null, ClassName not set for ". $record['Title']);
}else{
$objects[] = new $record['ClassName']($record);
}
if(isset($objects)) $doSet = new DataObjectSet($objects);
else $doSet = new DataObjectSet();