/** * @return \yii\db\ActiveQuery */ public function getUpdatedBy() { return $this->hasOne(Account::className(), ['id' => 'updated_by']); }
/** * @return \yii\db\ActiveQuery */ public function getAuthor() { return $this->hasOne(Account::className(), ['id' => 'created_by']); }
/** * @return \yii\db\ActiveQuery */ public function getUser() { return $this->hasOne(Account::className(), ['id' => 'user_id']); }