Maslosoft Mangan Logo Maslosoft Mangan Documentation
MongoDB Object Persister

Edit

Composing Models

Some of developers, or companies like active document approach, while others are more keen to use dedicated classes of each operation on the model life cycle and keep model even plain PHP class.

Mangan allows You to choose any of approach You like, or blend it using traits. This allows developer to choose which methods should belong to model, or which should be in separate classes.