Browse Source

ActiveRecord::getNamespacedClass() call style

tags/2.0.0-beta
creocoder 11 years ago
parent
commit
c091248e0d
  1. 4
      framework/yii/db/ActiveRecord.php

4
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,

Loading…
Cancel
Save