summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorwei <>2007-02-27 23:49:41 +0000
committerwei <>2007-02-27 23:49:41 +0000
commit5e62551cd31137fc507e4061090a06003843a6c7 (patch)
treea565fb5deb1be9b989aec8e64413abee5f8e35f0 /framework
parent7a9626af3bef5c712901597065745d9572c3f097 (diff)
typo
Diffstat (limited to 'framework')
-rw-r--r--framework/Data/ActiveRecord/TActiveRecord.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/framework/Data/ActiveRecord/TActiveRecord.php b/framework/Data/ActiveRecord/TActiveRecord.php
index 8c789ec2..0eb6d51d 100644
--- a/framework/Data/ActiveRecord/TActiveRecord.php
+++ b/framework/Data/ActiveRecord/TActiveRecord.php
@@ -147,17 +147,17 @@ abstract class TActiveRecord extends TComponent
*/
public static function finder($className=__CLASS__)
{
- if($class==='TActiveRecord')
+ if($className==='TActiveRecord')
throw new TActiveRecordException('ar_invalid_finder_class_name');
static $finders = array();
- if(!isset($finders[$class]))
+ if(!isset($finders[$className]))
{
- $f = Prado::createComponent($class);
+ $f = Prado::createComponent($className);
$f->_readOnly=true;
- $finders[$class]=$f;
+ $finders[$className]=$f;
}
- return $finders[$class];
+ return $finders[$className];
}
public static function getRecordFinder($className)