Ritchie Martori
2922eb63b7
Merge
2014-05-14 13:33:46 -07:00
Ritchie Martori
0866a55cb2
Do not .toObject if already Object
2014-05-14 13:31:15 -07:00
Raymond Feng
3f410cae21
Add test cases for updateOrCreate/save and fix related issues
2014-05-09 15:27:45 -07:00
Raymond Feng
8b128b566d
Make sure ObjectID type is not parsed as object
2014-05-08 15:46:14 -07:00
Ritchie Martori
aea5836569
Add hidden property support
2014-04-11 11:39:57 -07:00
Raymond Feng
cc5975486d
Simplify the inclusion processing
2014-03-17 08:40:40 -07:00
crandmck
9c2098cd35
Updates to JSDoc comments for API doc
2014-03-12 16:28:46 -07:00
Raymond Feng
85232f31b3
Clean up the options for model constructor
2014-02-10 22:38:59 -08:00
Raymond Feng
1961fbeefe
Enhance the assertions
2014-02-03 20:52:01 -08:00
Raymond Feng
ee5b351398
Make sure own properties are copied by toObject for non-strict mode
...
See https://github.com/strongloop/loopback/issues/162
2014-01-30 11:51:34 -08:00
Raymond Feng
93c18163c8
Make sure __cachedRelations is not enumerable
2014-01-28 09:57:23 -08:00
Raymond Feng
2b8c1ebaee
Reformat the code
2014-01-24 09:09:53 -08:00
Ritchie Martori
597a775e4c
Add model.getDataSource() method
2013-10-31 11:46:12 -07:00
Raymond Feng
0bfc362b18
Use for-in loop to support properties from the super class
2013-10-06 21:27:02 -07:00
Raymond Feng
24d87976e8
Merge branch 'master' into juggler-tidyup
...
Conflicts:
lib/model.js
2013-10-04 14:32:51 -07:00
Raymond Feng
1ae9478496
Fix the columnName
2013-10-03 14:49:03 -07:00
Raymond Feng
1963ea9fb1
Use ModelDefinition to access model name/properties/settings
2013-10-02 15:18:50 -07:00
Raymond Feng
fad6ee5e1d
Refactor/cleanup the data source juggler implementation
...
- Add a ModelDefinition class to encapsulate the model schema handling
- Add a Connector class as the base class for connector implementations
- Optimize attachTo and mixin
- Rename some properties/methods
2013-10-01 22:14:21 -07:00
Raymond Feng
1575c87caf
Make sure schemaless property value is honored over __data
2013-09-18 16:34:52 -07:00
Raymond Feng
038f30cb95
Fix the conflicts between MongoDB _id & juggler's internal prefix
2013-08-30 16:59:17 -07:00
Raymond Feng
c2eb1f55f0
Fix the property population for schemaless models
2013-08-28 21:49:05 -07:00
Raymond Feng
59841a04a8
Set strict to false by default for non-relational data sources
2013-08-26 13:38:24 -07:00
Raymond Feng
57c181c8b9
Bring up json object introspection to build models
2013-07-26 13:06:43 -07:00
Raymond Feng
9b422752a6
Allows non-strict mode to accept unknown properties
2013-07-24 22:58:57 -07:00
Raymond Feng
752aedb80d
Rename adapters to connectors
2013-07-23 14:40:44 -07:00
Raymond Feng
6af4b1ba2f
More renames: schema -> dataSource, adapter -> connector
2013-07-23 11:16:43 -07:00
Raymond Feng
8e01e17bdb
Add support for nesting objects with an array
2013-07-12 18:59:43 -07:00
Ritchie Martori
7684fe2946
Change default create method from save to create for remoting
2013-07-02 20:28:00 -07:00
Ritchie Martori
522291bf08
Add support for extending models
2013-07-01 16:49:43 -07:00
Ritchie Martori
6cb53e5001
Add in memory geo filtering.
2013-06-25 20:31:00 -07:00
Raymond Feng
36c22ab972
Adjust the mixins
2013-06-05 14:34:05 -07:00
Raymond Feng
465a963d2d
Adding more tests
2013-05-28 13:50:59 -07:00
Raymond Feng
dd8512bc1f
Refactor more functions into mixins
2013-05-27 22:20:43 -07:00
Ritchie
a690f8d8df
Add data source attach example
2013-05-23 17:29:03 -07:00
Ritchie
1dee840de5
Add ability to attach data source to an existing model
2013-05-23 16:38:14 -07:00
Raymond Feng
184c190223
Bring up the schema loading from json docs
2013-05-20 16:05:59 -07:00
Raymond Feng
7caaeb2623
Fix the datasource.define
2013-05-17 14:41:04 -07:00
Raymond Feng
630b991d1d
Refactor the CRUD operations to DataAccessObject
2013-05-17 08:49:57 -07:00
Anatoliy Chakkaev
ba75af1490
Only save schema props
2013-05-13 22:04:29 -07:00
Anatoliy Chakkaev
83027f9ead
Accept related objects when creating instance #247
2013-05-13 22:04:28 -07:00
Anatoliy Chakkaev
eecbd32d07
Allow null properties for headless models
2013-05-13 22:04:28 -07:00
Anatoliy Chakkaev
c9e97744dd
Many-to-many relation
...
- hasMany {through: Class}
- hasAndBelongsToMany
- some specs in relations.test.js
2013-05-13 22:04:28 -07:00
Anatoliy Chakkaev
136ea91fbf
Organize model.js
2013-05-13 22:04:28 -07:00
Anatoliy Chakkaev
c4d4b68413
Datatypes casting
2013-05-13 22:04:28 -07:00
Raymond Feng
ad1b2ad7e9
Only call the orginal method once
2013-04-16 22:25:31 -07:00
Raymond Feng
3613f6e22f
Set up the connected handler before connect
2013-04-15 16:05:17 -07:00
Anatoliy Chakkaev
4943feb230
Merge transactions
2013-04-05 02:13:14 +04:00
Anatoliy Chakkaev
43d1cbd39e
Merge
2013-04-05 02:12:34 +04:00
Anatoliy Chakkaev
3a355851b6
ValidationError instead Error
2013-04-04 19:31:07 +04:00
Anatoliy Chakkaev
704bc965bd
Find on hasMany scope method
2013-04-04 00:46:41 +04:00