From 37d915bb407b9efe813dd7d436cd683654181c39 Mon Sep 17 00:00:00 2001 From: Geoff Munn Date: Tue, 9 Mar 2010 02:28:57 +0000 Subject: [PATCH] BUG FIX: column names quoted properly git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100691 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 dd47e9152..c7d227820 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());