Revision: Fri, 31 May 2024 16:10:39 GMT
v1.0 – outdated
This version of the documentation is outdated. Consider upgrading your project to Spiral Framework 3.12
Edit this page

ODM Engine

Spiral ODM engine provides ability to define strict MongoDB schema with support of data inheritance, composition and aggregation.

Table of Contents


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.

Standalone Usage

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/odm to enable mongodb support.