Adam Schwartz
49f0e5dcee
Fix typo "Unkown" => "Unknown"
2014-05-15 23:26:17 -04:00
crandmck
ba3653d406
Updated JSDoc comments with content from .md file
2014-05-15 17:59:23 -07:00
Miroslav Bajtoš
2a74bdc4de
validations: support multi-key unique constraint
...
Modify the "unique" validator to accept additional property names to
narrow the space of rows searched for duplicates.
Example:
Consider `SiteUser` belongsTo `Site` via `siteId` foreign key.
Inside every site, the user email must be unique. It is allowed to
register the same email with multiple sites.
SiteUser.validateUniquenessOf('email', { scopedTo: ['siteId'] });
2014-05-15 09:15:44 +02:00
crandmck
1db35cc926
Update JSDoc comments with content from api-model.md
2014-05-14 18:30:42 -07:00
Rand McKinney
affe3cd943
Add JSDoc for lat and lng properties.
2014-05-14 16:34:24 -07:00
Ritchie Martori
2922eb63b7
Merge
2014-05-14 13:33:46 -07:00
Ritchie Martori
ad752747d3
Add missing changed event
2014-05-14 13:31:15 -07:00
Ritchie Martori
6c91201f79
Local Storage
2014-05-14 13:31:15 -07:00
Ritchie Martori
0866a55cb2
Do not .toObject if already Object
2014-05-14 13:31:15 -07:00
Zack Bloom
dd4089d1c7
Fix bug where invalid relations in include filters would hang the server
2014-05-13 13:59:15 -04:00
Raymond Feng
3f410cae21
Add test cases for updateOrCreate/save and fix related issues
2014-05-09 15:27:45 -07:00
Raymond Feng
0bcbe6ceae
Remove undefined for the data to be saved
2014-05-09 09:59:34 -07:00
Raymond Feng
4a907b0a18
Remove the undefined property to avoid mongodb upsert overwrite
2014-05-08 15:46:39 -07:00
Raymond Feng
8b128b566d
Make sure ObjectID type is not parsed as object
2014-05-08 15:46:14 -07:00
crandmck
cf75f55f73
Fix JSDoc - remove newlines from function alias declarations, etc.
2014-05-07 11:24:49 -07:00
Rand McKinney
a765ea31ab
Correct JSDoc for discoverModelDefinitions
2014-05-06 14:18:10 -07:00
Ritchie Martori
45eadabbeb
Fix remoting for IDs in URLs
2014-05-01 14:19:31 -07:00
Ritchie Martori
aea5836569
Add hidden property support
2014-04-11 11:39:57 -07:00
Miroslav Bajtoš
440dfaf3a7
scope-like remotable metadata for belongsTo
...
Modify the methods created by `belongsTo` relation to mimick the methods
created by scopes (e.g. via `hasMany` relation).
This allows client code generators like loopback-angular to use the same
code for all relation types.
2014-04-08 10:30:57 +02:00
Raymond Feng
a1f8919e13
Merge pull request #98 from strongloop/feature/fix-issue-97
...
Fix the method for belongsTo with correct receiver
2014-04-04 08:27:55 -07:00
Raymond Feng
68d2696248
Fix the method for belongsTo with correct receiver
2014-04-03 20:41:53 -07:00
Miroslav Bajtoš
d08c6714d8
scope: improve description of shared methods
...
The description is used by client SDK code-generators like
loopback-angularjs.
2014-04-03 09:19:06 +02:00
Miroslav Bajtoš
abf57ff497
scope: add _targetClass to scope property
...
Store the class of the results returned by a scope find method.
This class is different from the "targetClass" when the relations
is using a third "through" model (e.g. hasAndBelongsToMany).
2014-04-02 19:32:37 +02:00
Raymond Feng
c79d0b0c33
Merge pull request #92 from strongloop/feature/fix-issue-91
...
Fix the base sql connector to correct escape id values
2014-03-27 14:34:46 -07:00
Raymond Feng
c28546b629
Fix the base sql connector to correct escape id values
...
This is based on https://github.com/strongloop/loopback-datasource-juggler/pull/91
https://github.com/strongloop/loopback-datasource-juggler/issues/90
2014-03-24 14:56:52 -07:00
Raymond Feng
0e7acec591
Set the relation property correctly
...
See https://github.com/strongloop/loopback/issues/218
2014-03-23 21:07:04 -07:00
Raymond Feng
cc5975486d
Simplify the inclusion processing
2014-03-17 08:40:40 -07:00
Raymond Feng
cadacc44bb
Create scoped methods for belongsTo and improve docs
2014-03-17 08:40:40 -07:00
Raymond Feng
1dc0c34252
Fix the connector resolver to make sure known connectors are used
2014-03-17 08:32:37 -07:00
Raymond Feng
bef90bd529
Refactor the serialize/deserialize into two functions
2014-03-17 08:32:37 -07:00
crandmck
aa11aad298
Fix some small errors
2014-03-13 16:26:29 -07:00
crandmck
9c2098cd35
Updates to JSDoc comments for API doc
2014-03-12 16:28:46 -07:00
Raymond Feng
464d23891b
Merge pull request #82 from strongloop/feature/ldl-scopes
...
Allows scopes to be defined in LDL
2014-03-04 09:50:27 -08:00
Raymond Feng
d14c58775d
Use debug module for logging
2014-03-04 09:42:55 -08:00
Raymond Feng
ab8076d44a
Merge pull request #80 from strongloop/feature/remoting-belongsTo
...
Make the belongsTo relation remotable
2014-03-04 08:57:57 -08:00
Raymond Feng
ed7e2e2ada
Fix the parameter name
2014-03-04 08:56:16 -08:00
Raymond Feng
24c4381221
Allows scopes to be defined in LDL
2014-03-03 17:16:37 -08:00
Raymond Feng
510f5ef6ac
Check the Array type
...
See https://github.com/strongloop/loopback-connector-mongodb/issues/21
2014-03-03 15:52:49 -08:00
Raymond Feng
14745b1305
Make the belongsTo relation remotable
2014-03-03 15:03:05 -08:00
Raymond Feng
925402fdb6
Merge pull request #78 from pandaiolo/master
...
Fix, model builder setter will not try to cast value if already the proper type
2014-02-27 10:38:28 -08:00
Aurelien Chivot
dfe1ea1655
Fix, model builder setter will not try to cast value if already the proper type
2014-02-26 21:10:15 +01:00
Raymond Feng
44a62d01af
Allows unknown properties to be saved for non-strict models
...
See https://github.com/strongloop/loopback/issues/199
2014-02-24 18:38:45 -08:00
Ritchie Martori
8ae292539e
Merge pull request #74 from strongloop/feature/dao-override
...
Override existing methods when mixing in DAO methods
2014-02-21 09:04:52 -08:00
Ritchie Martori
dd597d2197
Refactor mixin and always redefine proxy/delegate methods
2014-02-20 17:25:07 -08:00
Ritchie Martori
38c7a16da2
Override existing methods when mixing in DAO methods
2014-02-19 17:10:56 -08:00
Raymond Feng
9192c27409
Leave the item type introspection for List
2014-02-14 11:21:30 -08:00
Raymond Feng
12a624d99c
Rewrite the List class for typed array
2014-02-14 10:41:00 -08:00
Raymond Feng
7e45a1fda1
Fix the include with array value
2014-02-14 10:40:45 -08:00
Raymond Feng
061b274055
Merge branch 'partial-fix-for-58' of github.com:arlaneenalra/loopback-datasource-juggler
2014-02-12 21:55:53 -08:00
Raymond Feng
dbd97eb423
Merge pull request #68 from strongloop/feature/fix-lb-162
...
Make sure own properties are copied by toObject for non-strict mode
2014-02-11 14:29:21 -08:00