예제 #1
0
파일: Post.php 프로젝트: giicms/yii2-page
 public function getUser()
 {
     return $this->hasOne(User::className(), ['id' => 'user_id']);
 }