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

beforeValidationOnCreate dont work ?

I have a code like this:

public function beforeValidationOnCreate()
    {
        if(empty($this->value)){
            $this->value=false;
        }
    }

but it doesn't work, it says that value is required

Does it still fail if you set $this->value to a valid value?