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
c4d4b68413
Datatypes casting
2013-05-13 22:04:28 -07:00
Raymond Feng
ad1b2ad7e9
Only call the orginal method once
2013-04-16 22:25:31 -07:00
Raymond Feng
3613f6e22f
Set up the connected handler before connect
2013-04-15 16:05:17 -07:00
Anatoliy Chakkaev
4943feb230
Merge transactions
2013-04-05 02:13:14 +04:00
Anatoliy Chakkaev
43d1cbd39e
Merge
2013-04-05 02:12:34 +04:00
Anatoliy Chakkaev
3a355851b6
ValidationError instead Error
2013-04-04 19:31:07 +04:00
Anatoliy Chakkaev
704bc965bd
Find on hasMany scope method
2013-04-04 00:46:41 +04:00
Anatoliy Chakkaev
b0a1ed3bed
Fix validation issue
2013-04-01 20:08:22 +04:00
Anatoliy Chakkaev
cf5ed5b877
Transactions
2013-04-01 17:49:12 +04:00
Anatoliy Chakkaev
6d1e47ceaf
Schemas switching
2013-03-31 16:35:26 +04:00
Anatoliy Chakkaev
76c7fbd6ec
Merge branch 'http' of github.com:NiKnight/jugglingdb
2013-03-31 14:08:38 +04:00
Anatoliy Chakkaev
0776c51994
Batch create
2013-03-31 13:40:37 +04:00
Scott Nonnenberg
2ba862f5af
afterDestroy not called on adapter error
...
Similar to afterCreate and afterUpdate, we don't want to run the afterXXXX handlers if the delete failed according to the adapter.
2013-03-30 17:18:47 -07:00
Anatoliy Chakkaev
2f048e79c0
Return instance of object when create
2013-03-30 21:06:09 +04:00
Anatoliy Chakkaev
1f29064b3d
Rewrite save and create for correct hooks order
...
Validation should be called first, and then all other actions
to allow modify data after validation (for example hash
password after validating length.
Issue #242
2013-03-28 15:26:51 +04:00
Anatoliy Chakkaev
2749a1f7e0
Fixes in belongsTo relation definition syntax
2013-03-27 04:48:26 +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
Anatoliy Chakkaev
16c826bd4f
Rename files
2013-03-25 01:35:08 +04:00