Commit Graph

2093 Commits

Author SHA1 Message Date
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
Raymond Feng 61d315cb28 Merge pull request #180 from strongloop/feature/refactor-relation-remoting
Move relation remoting to loopback
2014-07-22 11:13:07 -07:00
Raymond Feng 716b27b0f0 Merge pull request #181 from offlinehacker/master
Add support for disabling relationship includes
2014-07-21 13:46:43 -07:00
Jaka Hudoklin 11679beb14 add support for disabling relationship includes
Signed-off-by: Jaka Hudoklin <jakahudoklin@gmail.com>
2014-07-21 22:39:29 +02:00
Jaka Hudoklin b1a1894635 add support for relationship options
Signed-off-by: Jaka Hudoklin <jakahudoklin@gmail.com>
2014-07-21 22:39:06 +02:00
Raymond Feng adda48d7b0 Merge tag 'v2.0.0-beta5'
2.0.0-beta5
2014-07-21 11:35:53 -07:00
Raymond Feng 74aa84e019 Merge branch 'release/2.0.0-beta5' into production 2014-07-21 11:35:24 -07:00
Raymond Feng f9e31de7c8 Bump version 2014-07-21 11:34:38 -07:00
Raymond Feng 75fb3c79c7 Merge pull request #179 from strongloop/feature/expose-base-model
Expose base model class as `base` property
2014-07-21 11:08:21 -07:00
Raymond Feng 8f46626c0b Expose base model class as `base` property 2014-07-21 10:21:30 -07:00
Raymond Feng ad22b025a6 Move relation remoting to loopback 2014-07-16 16:36:43 -07:00
Raymond Feng 857deb1130 Merge tag 'v2.0.0-beta4'
2.0.0-beta4
2014-07-16 12:32:51 -07:00
Raymond Feng 42c6c9c4a4 Merge branch 'release/2.0.0-beta4' into production 2014-07-16 12:32:42 -07:00
Raymond Feng 671b32dd43 Add missing inflection dep back 2014-07-16 12:31:44 -07:00
Raymond Feng 523db2fbad Bump version 2014-07-15 17:11:22 -07:00
Raymond Feng fc710ca55a Merge branch 'master' into 2.0 2014-07-15 17:09:20 -07:00
Raymond Feng cc2fcf5f89 Merge tag 'v1.7.0'
1.7.0
2014-07-15 16:11:39 -07:00
Raymond Feng e592fb0527 Merge branch 'release/1.7.0' into production 2014-07-15 16:11:33 -07:00
Raymond Feng 82c6c8e851 Make sure related properties are defined for RDBMS 2014-07-15 16:10:37 -07:00
Raymond Feng ee6da650e9 Test instance or id by the model type 2014-07-15 16:09:54 -07:00
Raymond Feng f406c32b33 Bump version 2014-07-15 12:55:40 -07:00
Raymond Feng dc6ada6348 Merge pull request #165 from strongloop/feature/allow-hook-skip-next
Pass callback to hooks so that next can be skipped
2014-07-15 12:53:52 -07:00
Raymond Feng efeb59178f Merge pull request #174 from fabien/fix/validations
Fix/validations
2014-07-15 12:53:33 -07:00