dresende/node-orm2 — pull request #218 by dresende (2013-07-03 15:04:02+00:00)
Title: Model.extendsTo()

Usage:

```js
var Person = db.define("person", {
name : String
});
var PersonAddress = Person.extendsTo("address", {
street : String,
number : Number
});

Person.get(1, function (err, John) {
John.setAddress(new PersonAddress({
}), function (err) {
/*
there should be a table 'person' (id, name)
and a table 'person_address' (person_id, street, number)
*/
});
});
```

Todo:

- [x] Basic usage working
- [ ] Tests passing
- [ ] Documentation
- [ ] Extension model synching / droping