摘要: 当前模型类为活动表id,关联评论表的type_id,条件是评论表的type要等于2public function getComment(){ return $this->hasMany(Comment::className(),['type_id'=>'id'])->onCondition([Com 阅读全文
posted @ 2018-12-19 10:36 fpc 阅读(2086) 评论(0) 推荐(0) 编辑