예제 #1
0
파일: Comment.php 프로젝트: bessonov87/bw
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUser()
 {
     return $this->hasOne(User::className(), ['id' => 'user_id'])->joinWith('profile');
 }
예제 #2
0
파일: Files.php 프로젝트: bessonov87/bw
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUser()
 {
     return $this->hasOne(User::className(), ['id' => 'user_id']);
 }
예제 #3
0
파일: Post.php 프로젝트: bessonov87/bw
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAuthor()
 {
     return $this->hasOne(User::className(), ['id' => 'author_id']);
 }