更新
This commit is contained in:
22
app/model/Company.php
Normal file
22
app/model/Company.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | OneThink [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\model;
|
||||
|
||||
/**
|
||||
* Company模型
|
||||
*/
|
||||
class Company extends \think\Model{
|
||||
protected $auto = array('update_time');
|
||||
protected $insert = array('create_time');
|
||||
|
||||
public function apt(){
|
||||
return $this->hasMany('CompanyApt', 'compId', 'compId');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user