提交其他文件
This commit is contained in:
10
app/common/model/area/Area.php
Normal file
10
app/common/model/area/Area.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\area;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class Area extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
13
app/common/model/area/City.php
Normal file
13
app/common/model/area/City.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\area;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class City extends BaseModel
|
||||
{
|
||||
public function getArea()
|
||||
{
|
||||
return $this->hasMany('area', 'id', 'city_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user