alterphp/easyadmin-mongo-odm-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alterphp/easyadmin-mongo-odm-bundle

Composer 安装命令:

composer require alterphp/easyadmin-mongo-odm-bundle

包简介

This bundle provides support for Doctrine Mongo ODM documents in EasyAdmin

README 文档

README

Provides support of Doctrine Mongo ODM documents in EasyAdmin

⚠️ 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).

统计信息

  • 总下载量: 13.54k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-06