summaryrefslogtreecommitdiff
path: root/framework/Data
diff options
context:
space:
mode:
authorwei <>2007-04-05 02:54:26 +0000
committerwei <>2007-04-05 02:54:26 +0000
commitb99fd37ad7a3cae497b5242e5537f508c03f5585 (patch)
tree5898782b43217608af27d6f78c9d057437ea6f81 /framework/Data
parentb89fc455357082799ff6559edc55991ec0cb1b52 (diff)
make magic finder methods case insensitive.
Diffstat (limited to 'framework/Data')
-rw-r--r--framework/Data/ActiveRecord/TActiveRecord.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Data/ActiveRecord/TActiveRecord.php b/framework/Data/ActiveRecord/TActiveRecord.php
index 54aef3f3..109ae9a6 100644
--- a/framework/Data/ActiveRecord/TActiveRecord.php
+++ b/framework/Data/ActiveRecord/TActiveRecord.php
@@ -520,7 +520,7 @@ abstract class TActiveRecord extends TComponent
$search = implode('|', $meta->getColumnNames());
$regexp = '/('.$search.')(and|_and_|or|_or_)?/i';
$matches = array();
- if(!preg_match_all($regexp, $condition, $matches,PREG_SET_ORDER))
+ if(!preg_match_all($regexp, strtolower($condition), $matches,PREG_SET_ORDER))
{
throw new TActiveRecordException('ar_mismatch_column_names',
$method, implode(', ', $meta->getColumnNames()), $meta->getTableName());