Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class User extends CActiveRecord
- {
- public static function model($className=__CLASS__)
- {
- return parent::model($className);
- }
- public function tableName()
- {
- return 'User';
- }
- public function relations()
- {
- return array(
- 'locale' => array(self::BELONGS_TO, 'Locale', 'localeId'),
- );
- }
- }
Add Comment
Please, Sign In to add comment