We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

which variable is passed to phalcon\validation during validate

I am trying to make phalcon\validation to be require when exist the field in post or only to validate on create new user. However since the source code is compiled in C therefore I donno what is inside the code happen.

I am trying to do something in user model like

if(*syntax*){
    $this->validate(new Email(
        array(
            "field"   => "email",
            "message" => "Email format error"
        )
    ));
}

Donno if I have seen the correct source code actually, issit the cphalcon-master\build\64bits\phalcon.c ? I just dont seem to understand those 7572409594392423UL , 193489362UL things.

Okay seems like its passed by $this->email. So I think on create should be passed with $this->id .

( Guessing .. )