New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extending models broken? #3
Comments
I added a m = Object(); to fix it. |
mmm, I can't seem to get this to work either, not sure what you did to sort it? CODE BELOW FAILS Titanium.include('joli.js'); joli.connection = new joli.Connection('joli_example'); var models = (function() {
}); m.city = new joli.model({ m.country = new joli.model({ m.searches = new joli.model({ return m; joli.models.initialize(); ///Inserting data can be done using the newRecord() method of a model: // // create the record (not persisted) // move him to New York // persist it //other way var john = new joli.record(models.human); // move him to New York // persist it var q = new joli.query() // if (win.city_id) { var humans = q.execute(); Ti.API.info(humans); |
I can't get it to work either. Any fixes available? |
Hi everybody, Sorry for letting this bug for so long time. I have just pushed a fix, and adapted the documentation: 40ef6ec |
In my attempts model extensions defined in a model's methods are not reachable as defined in the readme, including using the human model example.
The text was updated successfully, but these errors were encountered: