示例#1
0
文件: Post.php 项目: giicms/yii2-page
 public function getUser()
 {
     return $this->hasOne(User::className(), ['id' => 'user_id']);
 }