Array property model problem

74 views
Skip to first unread message

edugg

unread,
Apr 22, 2013, 10:34:32 AM4/22/13
to ged...@googlegroups.com
GeddyVersion: 0.7.21
NodeVersion: 0.8.22
OS: Ubuntu 12.04

Hi,

I make a new app, when I call a "create function" on models with arrays, I get the next error:

timers.js:103
           
if (!process.listeners('uncaughtException').length) throw e;
                                                                     
^
TypeError: Cannot read property 'validate' of undefined
    at
Object.utils.mixin.validateProperty (/usr/local/lib/node_modules/geddy/node_modules/model/lib/index.js:844:57)
    at
Object.utils.mixin.validateAndUpdateFromParams (/usr/local/lib/node_modules/geddy/node_modules/model/lib/index.js:804:24)
    at
Object.utils.mixin.createItem (/usr/local/lib/node_modules/geddy/node_modules/model/lib/index.js:717:17)
    at
Function.utils.mixin.obj.create (/usr/local/lib/node_modules/geddy/node_modules/model/lib/index.js:444:31)
    at create
(/home/edu/Documents/todo/app/controllers/todos.js:18:33)
    at controller
.BaseController._handleAction.callback (/usr/local/lib/node_modules/geddy/lib/controller/base_controller.js:349:22)
    at controller
.BaseController._handleAction (/usr/local/lib/node_modules/geddy/lib/controller/base_controller.js:362:7)
    at
App.start.geddy.server.addListener.finish (/usr/local/lib/node_modules/geddy/lib/app.js:385:34)
    at
/usr/local/lib/node_modules/geddy/lib/app.js:591:19
    at session
.Session.init.localCallback (/usr/local/lib/node_modules/geddy/lib/sessions/index.js:83:9)


Also, now, I'm getting the same error in my old projects.

All suggestions are welcome.

Matthew Eernisse

unread,
Apr 22, 2013, 12:39:23 PM4/22/13
to ged...@googlegroups.com
The 'array' datatype was removed recently, but you can continue to put your array values in 'object' datatypes. One benefit of this change is that now serializing/deserializing these values all behave consistently and correctly.

Hope that helps.


--
The official community discussion group.
website: geddyjs.org, source: https://github.com/mde/geddy, group: https://groups.google.com/d/forum/geddyjs?hl=en
---
You received this message because you are subscribed to the Google Groups "GeddyJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geddyjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

edugg

unread,
Apr 22, 2013, 2:44:04 PM4/22/13
to ged...@googlegroups.com
Ops! good to know.

Thanks Matthew!
Reply all
Reply to author
Forward
0 new messages