BUG FIX: column names quoted properly (from r100691)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105622 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-05-25 04:23:03 +00:00
parent 0a91f30722
commit 169a7cfb82

View File

@ -38,7 +38,7 @@ class Group extends DataObject {
function getAllChildren() {
$doSet = new DataObjectSet();
if ($children = DataObject::get('Group', 'ParentID = '.$this->ID)) {
if ($children = DataObject::get('Group', '"ParentID" = '.$this->ID)) {
foreach($children as $child) {
$doSet->push($child);
$doSet->merge($child->getAllChildren());