Spiral ODM engine provides ability to define strict MongoDB schema with support of data inheritance, composition and aggregation.
Table of Contents
- MongoDB Databases
- Documents and DocumentEntity
- Accessors and Filters
- Repositories and Selectors
- Compositions and Aggregations
Please note, ODM engine use second level cache to store information about mapping between persistence layer and your data entity models. Do not forget to run command
spiral odm:schema to update schema cache.
You are able to use ODM component separately from framework, take a look at initialization here.
Component configuration and bindings are pre-installed in your application, require
spiral/odmto enable mongodb support.