Ovviamente intendevo "Il problema è che non hai scritto $this->data["User"] ma $this->data["Users"] (con la S finale) nella chiamata findByUsername()."
Ovviamente intendevo "Il problema è che non hai scritto $this->data["User"] ma $this->data["Users"] (con la S finale) nella chiamata findByUsername()."