summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
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)