From 8cb73ead3c6b553c925dd90598aa23e0c6fa379c Mon Sep 17 00:00:00 2001 From: gwoo Date: Mon, 11 Aug 2008 15:11:06 +0000 Subject: [PATCH] fixes #5233, uppercase fields in containable git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7452 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/model/behaviors/containable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/model/behaviors/containable.php b/cake/libs/model/behaviors/containable.php index f75ffc5be..e8e1df350 100644 --- a/cake/libs/model/behaviors/containable.php +++ b/cake/libs/model/behaviors/containable.php @@ -300,7 +300,7 @@ class ContainableBehavior extends ModelBehavior { continue; } $optionKey = in_array($key, $options, true); - if (!$optionKey && is_string($key) && preg_match('/^[a-z(]/', $key) && (!isset($Model->{$key}) || !is_object($Model->{$key}))) { + if (!$optionKey && is_string($key) && preg_match('/^[a-zA-Z(]/', $key) && (!isset($Model->{$key}) || !is_object($Model->{$key}))) { $option = 'fields'; $val = array($key); if ($key{0} == '(') {