コード例 #1
0
 public function init()
 {
     $this->modelClass = UserProfile::className();
     $this->findModel = UserController::className() . '::' . UserController::METHOD_FIND_MODEL;
     $this->checkAccess = UserController::className() . '::' . UserController::METHOD_CHECK_ACCESS;
     parent::init();
 }
コード例 #2
0
ファイル: Currency.php プロジェクト: RubenDjOn/PrivateTeacher
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUserProfiles()
 {
     return $this->hasMany(\common\models\UserProfile::className(), ['currency_id' => 'id']);
 }
コード例 #3
0
ファイル: User.php プロジェクト: efabrikov/qreachers
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUserProfile()
 {
     return $this->hasOne(UserProfile::className(), ['user_id' => 'id']);
 }
コード例 #4
0
 public function getUserProfile()
 {
     return $this->hasOne(UserProfile::className(), array('user_id' => 'staff_id'));
 }