Fabien Franzen
b18384459a
Implemented findByIds
2014-07-29 15:01:47 +02:00
Fabien Franzen
296bb0d73e
Minor touchups
2014-07-29 14:05:18 +02:00
Fabien Franzen
13cee9502c
Tests for polymorphic embedsMany
2014-07-29 13:57:49 +02:00
Fabien Franzen
da303b72a5
Implemented more complex scenaro: embedsMany + relations
...
The test case will denormalize data into the embedded object,
and re-use the actual related object id as its own id.
2014-07-29 12:02:52 +02:00
Laurent Chenay
b336166acc
Add test to protect the use of include in related method
2014-07-29 11:05:57 +02:00
Fabien Franzen
6ed7a0a5f2
Convenience embedsMany accessors: at(idx), get(id), set(id, data)
2014-07-29 10:51:33 +02:00
Raymond Feng
cb43114ab7
Fix test cases
2014-07-28 16:15:37 -07:00
Raymond Feng
1b44a6d779
Merge branch 'feature/embed-hasmany' of github.com:fabien/loopback-datasource-juggler into fabien-feature/embed-hasmany
2014-07-28 14:51:16 -07:00
Raymond Feng
c8c499320c
Merge branch 'fabien-feature/polymorphic-rel'
2014-07-28 14:24:24 -07:00
Raymond Feng
75403ef929
Merge branch 'feature/polymorphic-rel' of github.com:fabien/loopback-datasource-juggler into fabien-feature/polymorphic-rel
...
Fix test cases
2014-07-28 14:22:45 -07:00
Raymond Feng
8bc11ca51e
Increase the max number of model listeners
...
See https://github.com/strongloop/loopback/issues/404
2014-07-28 13:02:00 -07:00
Raymond Feng
5221d12305
Remove unused data
2014-07-28 09:36:04 -07:00
Raymond Feng
7ad22939ab
Export GeoPoint class
2014-07-28 09:00:15 -07:00
Raymond Feng
5cc2c5d92f
Merge pull request #195 from lchenay/patch-3
...
Fix HEAD on relation hasMany
2014-07-28 08:53:46 -07:00
Laurent Chenay
aaf037fc51
Do not overwrite inclusion but scope them. Needed in relation hasManyThrought
2014-07-28 15:20:04 +02:00
Laurent Chenay
04a56e2ea6
Fix HEAD on relation hasMany
2014-07-28 11:36:32 +02:00
Fabien Franzen
309105c4ad
Updated remaining relations to use polymorphicParams
2014-07-28 11:12:20 +02:00
Fabien Franzen
7ddfbb6409
polymorphics can now be declared using object
2014-07-28 10:44:26 +02:00
Fabien Franzen
4e76c2a77f
typeTo => discriminator
2014-07-28 10:18:42 +02:00
Fabien Franzen
e1ecb4b95f
Require unique ids for embedded items
2014-07-27 17:30:10 +02:00
Fabien Franzen
43e11af942
Test build of embedsMany
2014-07-27 17:16:25 +02:00
Fabien Franzen
cd2cc68905
Minor fix
2014-07-27 16:56:30 +02:00
Fabien Franzen
1487a592c1
Added validation for embedded items (optional)
2014-07-27 16:54:01 +02:00
Fabien Franzen
59a957b538
Implemented embedsMany relation
2014-07-27 16:30:45 +02:00
Raymond Feng
1b001eedd3
Merge tag 'v2.1.1'
...
2.1.1
2014-07-27 00:40:57 -07:00
Raymond Feng
f11ac18b55
Merge branch 'release/2.1.1' into production
2014-07-27 00:40:51 -07:00
Raymond Feng
08070aab76
Bump version
2014-07-27 00:40:10 -07:00
Raymond Feng
1a989041ed
Fix a regression where undefined id should not match any record
2014-07-27 00:38:50 -07:00
Raymond Feng
074382a448
Merge tag 'v2.1.0'
...
2.1.0
2014-07-27 00:01:23 -07:00
Raymond Feng
45ece18e69
Merge branch 'release/2.1.0' into production
2014-07-27 00:01:15 -07:00
Raymond Feng
4f80890489
Bump version
2014-07-26 23:58:51 -07:00
Fabien Franzen
5a5aa3f14d
Minor tweaks; pass-through properties/scope for hasAndBelongsToMany
2014-07-26 21:32:24 +02:00
Fabien Franzen
5e30ec8637
Implemented polymorphic hasMany through inverse
...
Added option invert: true to enable inverse polymorphic hasMany
relations.
Fixed missing fk1 in query of HasManyThrough.prototype.exists.
2014-07-26 21:11:25 +02:00
Fabien Franzen
d1896553fd
More hasAndBelongsToMany tests
2014-07-26 17:20:25 +02:00
Fabien Franzen
9f94ec9bde
Minor cleanup
2014-07-26 15:23:40 +02:00
Fabien Franzen
00dfe563eb
Implemented polymorphic hasOne
...
Signed-off-by: Fabien Franzen <info@atelierfabien.be>
2014-07-26 15:20:46 +02:00
Fabien Franzen
295e6fc1f1
Implemented polymorphic hasAndBelongsToMany
2014-07-26 14:54:54 +02:00
Fabien Franzen
9b97e1ae77
Implemented polymorphic hasMany
2014-07-26 12:47:55 +02:00
Miroslav Bajtoš
27add4ce0b
Merge pull request #190 from strongloop/feature/handle-connector-without-types
...
datasource: support connectors without `getTypes`
2014-07-25 17:33:01 +02:00
Miroslav Bajtoš
ebd0bc62ee
datasource: support connectors without `getTypes`
...
Asking connectors to provide `getTypes` function is a breaking
change, connectors working with loopback 1.3 no longer works
in newer versions.
2014-07-25 11:32:40 +02:00
Miroslav Bajtoš
c92575c292
Merge pull request #189 from strongloop/feature/include-target-for-hasOne
...
relation: add `scope._target` for `hasOne` (1.x, 2.x)
2014-07-24 20:22:55 +02:00
Miroslav Bajtoš
cd4dba79dc
relation: add `scope._target` for `hasOne`
...
Add `_target` property to the scope method created by `hasOne`
relationship. The `_target` property is used by loopback-sdk-angular.
2014-07-24 20:22:11 +02:00
Raymond Feng
e8863db928
Merge pull request #187 from fabien/fix/scope-destroy
...
Fix scoped destroyAll: only use 'where', not full 'filter' args
2014-07-24 08:48:46 -07:00
Fabien Franzen
973c96268f
Fix scoped destroyAll: only use 'where', not full 'filter' args
2014-07-24 15:55:00 +02:00
Raymond Feng
be1a53482a
Merge branch 'fabien-feature/dynamic-scope'
2014-07-23 10:17:10 -07:00
Fabien Franzen
687eb9888b
Added test for belongsTo scope/properties
...
Note: its seems that keyFrom and keyTo were mistakingly reversed in
BelongsTo.prototype.create, please double check. The added test cases
now pass with pk/fk switched.
2014-07-23 11:10:44 +02:00
Fabien Franzen
bc4076f35e
Implement scope/properties for BelongsTo (+ fix foreign key matching)
2014-07-22 22:09:29 +02:00
Miroslav Bajtoš
fe14a0c835
Merge tag 'v2.0.0'
...
2.0.0
2014-07-22 20:31:42 +02:00
Miroslav Bajtoš
aebdb44149
Merge branch 'release/2.0.0' into production
2014-07-22 20:31:38 +02:00
Miroslav Bajtoš
cbab9d754a
2.0.0
2014-07-22 20:29:42 +02:00