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

error when save or create using orm phalcon 1.3.3

this my code $user = new User(); $user->id = '12345'; $user->create(); when i execute that code, the borwser displaying error "Cannot use a scalar value as an array" that's anyone can help me?

thanks



33.8k

If your ID is a integer, put an integer, not a string. Otherwise tell me more about your table.



2.5k

that's my testing code with testing table too, contain only one field, 'id varchar(30)',



98.9k

I think you need more than one field to make it work



2.5k

all my tables has same error, if i'm using orm, but worked in phalcon 1.2.6



3.1k

Your question has no value this way. Post your DB layout & model class to allow us to help you. Thanks!