コード例 #1
0
ファイル: Users.php プロジェクト: hanxiao84322/coach_system
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUsersVocationals()
 {
     return $this->hasMany(UsersVocational::className(), ['user_id' => 'id']);
 }