Commit Graph

2410 Commits

Author SHA1 Message Date
Raymond Feng 97827db59d Merge pull request #268 from fabien/feature/transient-model
Transient connector implementation
2014-08-31 08:37:26 -07:00
Raymond Feng 6527bd0605 Merge pull request #259 from fabien/fix/refactor-validations
Validations configuration as object
2014-08-31 08:37:03 -07:00
Raymond Feng 14dfbb763d Merge pull request #272 from clarkorz/fix/polymorphicName-var-scope
fix polymorphicName var scope
2014-08-31 08:36:22 -07:00
Raymond Feng 1440b800da Merge pull request #267 from fabien/fix/tiny
Fix error messages, should be lowercase
2014-08-31 08:27:15 -07:00
Clark Wang 565b85555c Allow to add connection with through data for HasManyThrough relation
Signed-off-by: Clark Wang <clark.wangs@gmail.com>
2014-08-31 21:40:18 +08:00
Clark Wang d43044c766 fix polymorphicName var scope
see https://github.com/strongloop/loopback-datasource-juggler/issues/271

Signed-off-by: Clark Wang <clark.wangs@gmail.com>
2014-08-31 19:57:37 +08:00
Fabien Franzen 3f517a4c0a Reset json when building model definition 2014-08-31 12:17:53 +02:00
Fabien Franzen e874810499 Add hint, minor cleanup 2014-08-30 21:08:23 +02:00
Fabien Franzen 0a9cb72837 Enable dynamic modelTo for scopes
This is especially useful for relations/prototype scopes, as it allows
you to dynamically deduce the target model from the current receiver
(model instance). This is an advanced option that should otherwise have
no effect on the previous/default functionality. Basically, the
targetClass is taken out of the closure and handled by a method called
targetModel now.
2014-08-30 20:58:06 +02:00
Fabien Franzen f31a9b13be Updated embedded relations to use transient connector
embedsMany will now use a connector's generated method, when defined.
Also, the id property type is now inferred correctly, making the autoId
option obsolete. However, a new option, forceId, can be set to enforce
the use of auto-generated ids, preventing any explicitly (user-)set id
values.
2014-08-30 11:43:36 +02:00
Fabien Franzen bd9895ebd6 Implemented Transient connector 2014-08-30 10:53:10 +02:00
Fabien Franzen 170dc661f4 Fix error messages, should be lowercase 2014-08-29 21:30:42 +02:00
Raymond Feng e9f00fbd8b Add neq operator support for memory connector
See https://github.com/strongloop/loopback-datasource-juggler/issues/265
2014-08-29 08:45:45 -07:00
Raymond Feng 7698f0f08b Merge tag 'v2.7.0'
2.7.0
2014-08-27 11:18:08 -07:00
Raymond Feng 3c7f7270f6 Merge branch 'release/2.7.0' into production 2014-08-27 11:17:47 -07:00
Raymond Feng 9cad519d97 Bump version 2014-08-27 11:15:57 -07:00
Raymond Feng dd412f9a6f Merge pull request #260 from strongloop/feature/fix-ping
Make sure error events are emitted by data source
2014-08-27 11:10:26 -07:00
Raymond Feng 32313c1df9 Make sure timeout handle is cleared 2014-08-27 09:42:16 -07:00
Raymond Feng fde5b426e4 Make sure error events are emitted by data source 2014-08-27 09:14:17 -07:00
Raymond Feng 693a38fed5 Merge branch 'fabien-feature/scope-where' 2014-08-26 10:34:47 -07:00
Fabien Franzen 6fae8c7277 Remove iteration of config args
Fixes #154 - args should only contain the property name at that point,
not loop over it.
2014-08-26 18:01:23 +02:00
Fabien Franzen 86ea107550 Validations configuration as object
Previously validations were appended to an array when configured. The
format was cumbersome, and led to issues. This refactors the
configuration into an object, as a property of the Model.

Note that if no validations have been configured, this property is
currently `undefined`.
2014-08-26 17:51:01 +02:00
Fabien Franzen 73330113ae Applied Coobaha's PR fix - prevents undefined values 2014-08-26 17:15:07 +02:00
Fabien Franzen bed97a75cb Expose validation metadata
The new Validatable.validations mixin method returns the validations as
an object
indexed by property name.
2014-08-26 16:56:09 +02:00
Fabien Franzen a4db887493 Implement where arg on scoped count and destroyAll 2014-08-26 14:54:19 +02:00
Raymond Feng d419ae80d0 Merge tag 'v2.6.1'
2.6.1
2014-08-25 22:19:47 -07:00
Raymond Feng db3351baac Merge branch 'release/2.6.1' into production 2014-08-25 22:19:42 -07:00
Raymond Feng debcc3d831 Bump version 2014-08-25 22:18:19 -07:00
Raymond Feng 6bc2a53afb Tweak the model names used by tests to avoid mssql conflicts 2014-08-25 22:17:51 -07:00
Raymond Feng 4470c02bbc Merge pull request #254 from fabien/fix/has-one-fk
Use the correct dataSource for modelFrom/modelTo
2014-08-22 14:25:44 -07:00
Fabien Franzen b27fd6527e Use the correct dataSource for modelFrom/modelTo 2014-08-22 21:38:28 +02:00
Raymond Feng 129e8f9fd9 Merge tag 'v2.6.0'
2.6.0
2014-08-22 11:08:37 -07:00
Raymond Feng ffe1ead124 Merge branch 'release/2.6.0' into production 2014-08-22 11:08:32 -07:00
Raymond Feng b26dc8207b Bump version 2014-08-22 11:07:24 -07:00
Raymond Feng ce12db3e45 Merge pull request #250 from offlinehacker/embedsMany_deleted
Emit deleted event on delete for embedsMany relations
2014-08-22 11:05:21 -07:00
Raymond Feng 0f3e7d50bd Merge pull request #239 from strongloop/feature/add-ping
Add ping() to test connections
2014-08-22 09:30:43 -07:00
Jaka Hudoklin 000c380a48 Emit deleted event on delete for embedsMany relations
Signed-off-by: Jaka Hudoklin <jakahudoklin@gmail.com>
2014-08-22 16:02:01 +02:00
Raymond Feng fb91c5463e Merge tag 'v2.5.2'
2.5.2
2014-08-21 13:51:06 -07:00
Raymond Feng dbc03178c0 Merge branch 'release/2.5.2' into production 2014-08-21 13:51:00 -07:00
Raymond Feng 9e25cf1cd3 Bump version 2014-08-21 13:50:15 -07:00
Raymond Feng fcd8ed984c Make sure falsy value is kept for properties not predefined 2014-08-21 13:47:09 -07:00
Raymond Feng 07e65d6618 Merge tag 'v2.5.1'
2.5.1
2014-08-21 11:42:57 -07:00
Raymond Feng f6ef201ec8 Merge branch 'release/2.5.1' into production 2014-08-21 11:42:50 -07:00
Raymond Feng 76119e1f56 Bump version 2014-08-21 10:59:31 -07:00
Raymond Feng b8a6183a2a Merge branch 'fabien-fix/issue-242' 2014-08-21 10:54:46 -07:00
Fabien Franzen 3f0380296a Fix side-effects of PR #237 - see #242 2014-08-21 10:44:55 +02:00
Raymond Feng 3875c561e0 Add ping() to test connections 2014-08-20 16:31:23 -07:00
Raymond Feng 2d6068794c Merge tag 'v2.5.0'
2.5.0
2014-08-20 15:09:34 -07:00
Raymond Feng 7b00635d82 Merge branch 'release/2.5.0' into production 2014-08-20 15:09:28 -07:00
Raymond Feng 6f680f92fc Bump version 2014-08-20 15:08:33 -07:00