初始化项目
This commit is contained in:
20
application/common/model/OrderProduct.php
Normal file
20
application/common/model/OrderProduct.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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\common\model;
|
||||
|
||||
/**
|
||||
* 分类模型
|
||||
*/
|
||||
class OrderProduct extends Base{
|
||||
|
||||
public function book(){
|
||||
return $this->hasOne('Book', 'id', 'product_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user