Skip to content

How to properly use nette/di lazy feature with nextras/orm #780

@mrceperka

Description

@mrceperka

We've come up with solution that works but it required more steps then we expected.

First, you set nette/di lazy to true

di:
  lazy: true

Then you have to force nextras/orm extension to initializeMetadata

orm:
    model: App\Core\Model\Orm
    initializeMetadata: true

Then you also HAVE TO DISABLE lazy for orm.metadataStorage

orm.metadataStorage
    lazy: false

Aaand it probably works, bit complicated setup tho :D

Is there any better way right know?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions