Beispiel #1
0
 /**
  * @return User
  */
 public function getNotifier()
 {
     return $this->hasOne(User::className(), ['id' => 'notifierId']);
 }
Beispiel #2
0
 /**
  * @return array - list of site Users
  */
 public function getUsers()
 {
     return $this->hasMany(User::className(), ['id' => 'memberId'])->viaTable(CoreTables::TABLE_SITE_MEMBER, ['siteId' => 'id']);
 }
 /**
  * @return User - who modified the model
  */
 public function getModifier()
 {
     return $this->hasOne(User::className(), ['id' => 'modifiedBy']);
 }