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