BusinessRegion.php 501 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Created by 上海互教教育科技有限公司.
  4. * User: 刘红伟
  5. * QQ : 454303753
  6. * Date: 2017/7/17 0017
  7. * Time: 下午 13:12
  8. */
  9. class BusinessRegion extends BusinessActiveRecord{
  10. public static function model($className = __CLASS__){
  11. return parent::model($className);
  12. }
  13. public function tableName(){
  14. return "region";
  15. }
  16. public function relations()
  17. {
  18. return array('access' => array(self::HAS_MANY, 'DocAccess', 'school_id'));
  19. }
  20. }