Comments (2)
@joesonw what does your model look like? You should define the object
as an embed type.
Generally if a value is an object and not defined in the model it isn't saved. This is because objects are complex structures. Not only do they have values but they also have methods, etc. So if you don't define the schema then we don't know what to do with it.
from mongodm.
Sorry obj
should be defined as embed type. See the tests for more detailed examples.
from mongodm.
Related Issues (20)
- Embedding: where's the id of the embedded object? HOT 4
- unsupported for Latest extension 'MongoDB'
- Remove _id dependancy of MongoId
- Model (with Reference to Json) HOT 3
- Add Late Static Binding and fix some methods call (i.e. static instead of self) HOT 1
- Geolocation data handling
- Inconsistent behavior when Mongo is not running HOT 3
- Mongodm can not be use in Phalcon? HOT 5
- mongo transaction HOT 1
- Method conflicts with magic methods
- slow to update HOT 1
- is this Compatibled with mongodb 3.0+? HOT 2
- any examples with gridfs?
- PHP 7 support? HOT 2
- MongoDB extension?
- Regex query is not working. HOT 1
- Error in example
- Unit tests support
- MongoDM not fully support PHP 7.1/PHP 7.2/PHP7.0 for find() function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongodm.