This is so confusing. In method onValidationFails if I use $this->name it will return the name. But if I use $this->userId it returns nothing.
public function onValidationFails(){
echo $this->name //works
echo $this->userId //nothing
}
This is so confusing. In method onValidationFails if I use $this->name it will return the name. But if I use $this->userId it returns nothing.
public function onValidationFails(){
echo $this->name //works
echo $this->userId //nothing
}