/** * @return User */ public function getNotifier() { return $this->hasOne(User::className(), ['id' => 'notifierId']); }
/** * @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']); }