public function editdata()
{
$user = User::findOne($this->id);
$user->username = $this->username;
$user->email = $this->email;
$user->fio = $this->fio;
$user->apartment = $this->apartment;
$user->house = $this->house;
$user->housing = $this->housing;
$user->street = $this->street;
$user->phone = $this->phone;
$user->setPassword($this->password);
return $user->save() ? $user : null;
}
Getting unknown property: app\models\EditdataForm::id