From 169a7cfb8247ff9dc6c5648c5e7da42380f0a8c0 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 25 May 2010 04:23:03 +0000 Subject: [PATCH] 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 --- security/Group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/Group.php b/security/Group.php index 950e50e09..aeee4876f 100644 --- a/security/Group.php +++ b/security/Group.php @@ -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());