Notice.php 454 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace app\common\models;
  3. use app\backend\models\BackendModel;
  4. /**
  5. * Created by PhpStorm.
  6. * Author: 芸众商城 www.yunzshop.com
  7. * Date: 2017/2/27
  8. * Time: 上午9:11
  9. */
  10. class Notice extends BackendModel
  11. {
  12. public $table = 'yz_goods_notices';
  13. protected $guarded = [''];
  14. protected $fillable = [''];
  15. public function hasOneMini()
  16. {
  17. return $this->hasOne(MemberMiniAppModel::class,'member_id','uid');
  18. }
  19. }