dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 376 forks source link

When using orm.enforce, I cannot get the error from callback ? #590

Closed odirus closed 9 years ago

odirus commented 9 years ago
odirus commented 9 years ago

I just found that if I should use it like this: validations: { app_name: orm.enforce.notEmptyString() } Sorry for this stupid mistake!