示例#1
0
文件: User.php 项目: kaniou/yii2pos
 public function getUserType()
 {
     return $this->hasOne(UserType::className(), ['id' => 'user_type_id']);
 }
示例#2
0
文件: Users.php 项目: raguila/islc
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUserType()
 {
     return $this->hasOne(UserType::className(), ['UserTypeID' => 'UserTypeID']);
 }
示例#3
0
文件: Role.php 项目: tiyolab/autocom
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUserTypes()
 {
     return $this->hasMany(UserType::className(), ['role' => 'id']);
 }
示例#4
0
文件: User.php 项目: abutouq/video
 /**
  * @return ActiveQuery
  */
 public function getUserType()
 {
     return $this->hasOne(UserType::className(), ['id' => 'users_types_id'])->where(['status' => 'active']);
 }