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



19.6k

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



1.6k

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



84.6k

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



1.6k

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



1.9k

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