示例#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
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUserProfiles()
 {
     return $this->hasMany(\common\models\UserProfile::className(), ['currency_id' => 'id']);
 }
示例#3
0
 /**
  * @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'));
 }