Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Easyadmin Mongo Odm Bundle Laravel Package

alterphp/easyadmin-mongo-odm-bundle

View on GitHub
Deep Wiki
Context7

EasyAdminMongoOdmBundle

Provides support of Doctrine Mongo ODM documents in EasyAdmin

:warning: This bundle is under development and remains experimental as long as no v1.0.0 tag is available !

Installation

EasyAdminMongoOdmBundle is installable aside an EasyAdmin configuration. It actually requires it !

composer require alterphp/easyadmin-mongo-odm-bundle:dev-master

Configuration

Simple example :

easy_admin_mongo_odm:
    documents:
        AnyDocument:
          class: App\Document\AnyDocument
        SomeDocument:
            class: App\Document\SomeDocument
            list:
                sort: createdAt
                fields:
                    - field1
                    - field2
                    - ...

# You can define menu for documents into easyadmin configuration
easy_admin:
    design:
        menu:
            - { label: AnyDocument, route: easyadmin_mongo_odm, params: { document: AnyDocument } }
            - { label: SomeDocument, route: easyadmin_mongo_odm, params: { document: SomeDocument } }

Dev notes

  • TwigPathPass compiler pass makes @EasyAdminMongoOdm templates to be searched in EasyAdmin bundle if not found in EasyAdminMongoOdm bundle.

TODOs

  • Exception listener for production env ?
  • QueryBuilder => deal with associations ?
  • PropertyConfigPass is not implemented => item format per field is not preset
  • Menu items of type document

Development tags

USE_MAIN_CONFIG : Some backend configuration used from EasyAdmin bundle (when not specific to ODM). RESTRICTED_ACTIONS : Marks code lines that deal with actions limitation (new, edit and delete are not available for now). NO_ASSOCIATION : Disabled association mapping (Mongo ODM has reference feature, but it's not implemented here yet). SORT_ONLY_INDEXES : By default, only indexed fields are sortable (for performance reason).

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky