Miroslav Bajtoš
4da4c65faa
Re-enable skipped test.
...
test/relations: hasMany should fetch all scoped instances
The test is passing with the current implementation.
2014-04-02 19:35:14 +02:00
Miroslav Bajtoš
abf57ff497
scope: add _targetClass to scope property
...
Store the class of the results returned by a scope find method.
This class is different from the "targetClass" when the relations
is using a third "through" model (e.g. hasAndBelongsToMany).
2014-04-02 19:32:37 +02:00
Raymond Feng
b42f7d2498
Remove the disconnect to avoid race condition
2014-03-27 13:56:24 -07:00
Raymond Feng
2b8c1ebaee
Reformat the code
2014-01-24 09:09:53 -08:00
Raymond Feng
8e01e17bdb
Add support for nesting objects with an array
2013-07-12 18:59:43 -07:00
Ritchie Martori
dbd5efed50
Revert adapter serialization. Remove geo point distance indicator.
2013-07-01 13:16:51 -07:00
Ritchie Martori
008b406dd7
model.find => model.findById, model.all => model.find
2013-06-24 12:42:58 -07:00
Anatoliy Chakkaev
83027f9ead
Accept related objects when creating instance #247
2013-05-13 22:04:28 -07:00
Anatoliy Chakkaev
eecbd32d07
Allow null properties for headless models
2013-05-13 22:04:28 -07:00
Anatoliy Chakkaev
a67f75f0be
Check types of sync and async getters created by belongsTo, close #266
2013-05-13 22:04:28 -07:00
Anatoliy Chakkaev
a73f53521e
Fix m2m: only add fk when hasMany have no "through"
2013-05-13 22:04:28 -07:00
Anatoliy Chakkaev
c9e97744dd
Many-to-many relation
...
- hasMany {through: Class}
- hasAndBelongsToMany
- some specs in relations.test.js
2013-05-13 22:04:28 -07:00
Anatoliy Chakkaev
136ea91fbf
Organize model.js
2013-05-13 22:04:28 -07:00
Anatoliy Chakkaev
43f395d653
Manually require init
2013-04-06 14:57:12 +04:00
Anatoliy Chakkaev
704bc965bd
Find on hasMany scope method
2013-04-04 00:46:41 +04:00
Anatoliy Chakkaev
349931780a
Automigrate before relation tests
2013-03-31 15:24:03 +04:00
Anatoliy Chakkaev
839791de2f
Upd tests
...
- skipping
- hook up redis-hq
- some stuff should be moved to advanced-querying tests
2013-03-29 11:43:04 +04:00
Anatoliy Chakkaev
2d6cc9aaee
Mongodb tolerance
2013-03-27 21:53:07 +04:00
Anatoliy Chakkaev
de28603460
Added short syntax for belongsTo
2013-03-27 00:48:14 +04:00
Anatoliy Chakkaev
f76b56d2fe
Another way to define belongsTo
2013-03-26 04:39:47 +04:00