From c091248e0ddf9461b423fbc2c8297bd11c1d0f63 Mon Sep 17 00:00:00 2001 From: creocoder Date: Thu, 1 Aug 2013 17:19:44 +0400 Subject: [PATCH] ActiveRecord::getNamespacedClass() call style --- framework/yii/db/ActiveRecord.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/yii/db/ActiveRecord.php b/framework/yii/db/ActiveRecord.php index a047270..5265a81 100644 --- a/framework/yii/db/ActiveRecord.php +++ b/framework/yii/db/ActiveRecord.php @@ -440,7 +440,7 @@ class ActiveRecord extends Model public function hasOne($class, $link) { return new ActiveRelation(array( - 'modelClass' => static::getNamespacedClass($class), + 'modelClass' => $this->getNamespacedClass($class), 'primaryModel' => $this, 'link' => $link, 'multiple' => false, @@ -478,7 +478,7 @@ class ActiveRecord extends Model public function hasMany($class, $link) { return new ActiveRelation(array( - 'modelClass' => static::getNamespacedClass($class), + 'modelClass' => $this->getNamespacedClass($class), 'primaryModel' => $this, 'link' => $link, 'multiple' => true,