Commit Graph

1808 Commits

Author SHA1 Message Date
Raymond Feng 9398ea863c Merge branch 'fabien-feature/embeds-one' 2014-08-20 14:29:00 -07:00
Raymond Feng f5839fb6ae Merge branch 'feature/embeds-one' of github.com:fabien/loopback-datasource-juggler into fabien-feature/embeds-one 2014-08-20 14:28:45 -07:00
Raymond Feng af329e3a66 Save the instance even the callback is not present 2014-08-20 14:22:47 -07:00
Raymond Feng b9c8018ca0 Merge branch 'fabien-feature/embeds-one' 2014-08-20 13:57:25 -07:00
Raymond Feng a1c1a9c658 Fix the embedsOne test cases 2014-08-20 11:42:14 -07:00
Raymond Feng beaf6e5345 Merge branch 'master' into fabien-feature/embeds-one 2014-08-20 09:25:20 -07:00
Raymond Feng 5088c4dd74 Fix test cases 2014-08-20 08:58:08 -07:00
Fabien Franzen 20e5d3c01b Validate embedded models by default 2014-08-20 08:58:08 -07:00
Fabien Franzen 1ec5357a6c Implemented embedsOne 2014-08-20 08:58:08 -07:00
Fabien Franzen faed0510c1 Coerce embedded model types 2014-08-20 08:58:07 -07:00
Fabien Franzen 3b81b928fb Implement DAO unsetAttribute 2014-08-20 08:57:20 -07:00
Raymond Feng 1705bd0f7f Merge pull request #237 from fabien/fix/rdbms-relations
Fix relations for RDBMS connectors (mysql, postgresql)
2014-08-20 08:53:40 -07:00
Fabien Franzen af99a8d344 Implemented belongsTo update/destroy on scope 2014-08-20 16:46:54 +02:00
Fabien Franzen 12ebaf77f2 Implemented hasOne destroy() 2014-08-20 15:58:45 +02:00
Fabien Franzen 123b2558a1 Implemented hasOne update() 2014-08-20 15:54:47 +02:00
Fabien Franzen 1d5079d811 Implement update() on embedsOne scope 2014-08-20 15:37:40 +02:00
Fabien Franzen a446551a59 Fix relations for RDBMS connectors (mysql, postgresql)
- fix tests (explicit model/property definitions)
- fix include vs. RDBMS model strictness
2014-08-20 14:03:38 +02:00
Raymond Feng 0290109cdb Fix test cases 2014-08-19 15:23:37 -07:00
Fabien Franzen 6f815526b0 Validate embedded models by default 2014-08-19 22:15:30 +02:00
Fabien Franzen 7c901af6d9 Implemented embedsOne 2014-08-19 22:10:35 +02:00
Fabien Franzen 2b262c04f6 Coerce embedded model types 2014-08-19 22:06:55 +02:00
Fabien Franzen c19aca906d Implement DAO unsetAttribute 2014-08-19 22:05:27 +02:00
Raymond Feng 5dc7a6350c Merge tag 'v2.4.2'
2.4.2
2014-08-18 20:38:31 -07:00
Raymond Feng b49915f042 Merge branch 'release/2.4.2' into production 2014-08-18 20:38:15 -07:00
Raymond Feng b47197e854 Bump version 2014-08-18 20:36:45 -07:00
Raymond Feng e1a516be75 Merge pull request #228 from fabien/fix/list-to-object
Prevent failure with null in List toObject
2014-08-17 22:34:09 -07:00
Fabien Franzen dad8266837 Prevent failure with null in List toObject 2014-08-18 07:28:33 +02:00
Raymond Feng a6fe10e527 Merge pull request #226 from fabien/feature/multi-mixin
Add ability to apply a plugin multiple times from LDL
2014-08-17 22:18:05 -07:00
Raymond Feng 38431753a1 Merge pull request #227 from fabien/fix/definition-tojson
Fix ModelDefinition toJSON bug
2014-08-17 22:17:05 -07:00
Fabien Franzen 291e7b2c74 Fix ModelDefinition toJSON bug 2014-08-17 18:01:52 +02:00
Fabien Franzen 39a728be84 Add ability to apply a plugin multiple times from LDL 2014-08-17 12:29:04 +02:00
Raymond Feng c3c2907248 Merge pull request #224 from fabien/fix/ldl-polymorphic
Properly handle LDL for polymorphic relations
2014-08-16 08:15:09 -07:00
Raymond Feng 9777639cb4 Merge pull request #225 from fabien/fix/has-many-exists
HasMany exists should use internal findById
2014-08-16 08:11:49 -07:00
Fabien Franzen b4b1c784dd HasMany exists should use internal findById
This limits the scope correctly, taking polymorphics into account.

(the foreign key check is actually obsolete I think)
2014-08-16 13:04:13 +02:00
Fabien Franzen 315d5c15c6 Tiny fix: obsolete i8n require 2014-08-16 11:07:48 +02:00
Fabien Franzen f5ec317800 Merge branch 'fix/ldl-polymorphic' of github.com:fabien/loopback-datasource-juggler into fix/ldl-polymorphic 2014-08-16 11:05:55 +02:00
Fabien Franzen ad780604e1 Properly handle LDL for polymorphic relations 2014-08-16 11:03:16 +02:00
Fabien Franzen a9f2da294c Properly handle LDL for polymorphic relations 2014-08-16 10:23:32 +02:00
Raymond Feng 855270d14a Merge tag 'v2.4.1'
2.4.1
2014-08-15 23:34:54 -07:00
Raymond Feng 3d0cf05e70 Merge branch 'release/2.4.1' into production 2014-08-15 23:34:48 -07:00
Raymond Feng 4df1f52c47 Bump version 2014-08-15 23:31:19 -07:00
Raymond Feng 7f9108c6d2 Check null
See https://github.com/strongloop/loopback-datasource-juggler/issues/223
2014-08-15 23:30:23 -07:00
Raymond Feng e23c2f2763 Merge tag 'v2.4.0'
2.4.0
2014-08-15 13:49:58 -07:00
Raymond Feng 50007e14ec Merge branch 'release/2.4.0' into production 2014-08-15 13:49:50 -07:00
Raymond Feng 5baf05c237 Bump version 2014-08-15 13:49:09 -07:00
Raymond Feng f37941dfd6 Fix the test cases to avoid hard-coded ids 2014-08-15 13:48:38 -07:00
Raymond Feng 572dac06cb Merge pull request #216 from fabien/fix/sorty-by-id
Allow partial list of ids for sortByIds
2014-08-15 13:05:24 -07:00
Fabien Franzen 3e300c1f35 Add strict flag to sortObjectsByIds
When true, any object not in the ids will be discarded and a subset
will be returned.
2014-08-15 19:47:12 +02:00
Fabien Franzen 2c40319585 Fix conflicts 2014-08-15 19:43:07 +02:00
Fabien Franzen 9f1c5d9c37 Moved DataAccessObject.sortByIds to utils.js 2014-08-15 19:39:58 +02:00