Difference between #2 and #3 of
Multiple-database support in Yii

Revision #3 has been created by balrok on Mar 2, 2012, 5:31:42 PM with the memo:

corrected indention of code
« previous (#2) next (#4) »

Changes

Title unchanged

Multiple-database support in Yii

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

Database

Content changed

[...]
self::$dbadvert->setActive(true);
return self::$dbadvert;
}
else
throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.'));
    }
}
...
```
This method is **purposely** static: the underlying cached `$dbadvert` value is, so the function may as well be be too. Now, with this helper prepared, we can edit the model itself:
[...]
20 0
39 followers
Viewed: 147 403 times
Version: 1.1
Category: How-tos
Tags: database
Written by: Steve Friedl
Last updated by: phazei
Created on: Dec 21, 2010
Last updated: 12 years ago
Update Article

Revisions

View all history