Advertisement
Guest User

Locale.php

a guest
Dec 22nd, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <?php
  2.  
  3. class Locale extends CActiveRecord
  4. {
  5. public function tableName()
  6. {
  7. return 'Locale';
  8. }
  9.  
  10. public function relations()
  11. {
  12. return array(
  13. 'users' => array(self::HAS_MANY, 'User', 'localeId'),
  14. );
  15. }
  16.  
  17. public static function model($className=__CLASS__)
  18. {
  19. return parent::model($className);
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement