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

Schemas

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.