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

Nullable column (previously Not Null) in table gives error "required"

I had created a table with a column as NOT NULL. I modified Not Null column to Null in table later as the requirement changed. I am unable to get rid of a check on this previously Not Null column. I have checked and rechecked the form code. It is being triggered from somewhere inside Phalcon. Not sure why it is happening. I am using Phalcon 1.3.1, MySQL 5.6.17 on Wamp platform. If I do not fill any value in this column I always get a message "myfieldname is required". If I set "notNullValidations" to false in controller then the error goes away.

Thanks



98.9k
Accepted
answer


16.3k

I was using metaDataDir in "services.php". Changed it to default memory and its all ok now. Thanks for pointing me in the right direction.