예제 #1
0
 public function getUser()
 {
     return $this->hasOne(User::className(), ['_id' => 'user_id']);
 }
예제 #2
0
파일: Message.php 프로젝트: quynhvv/stepup
 public function getUser()
 {
     return $this->hasOne(User::className(), ['_id' => 'created_by']);
 }
예제 #3
0
 public function getCreatorby()
 {
     return $this->hasOne(\app\modules\account\models\User::className(), ['_id' => 'creator']);
 }