0

连接到我的项目库“a2lix/i18n-doctrine-bundle”,并出现此错误:

[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]   
Unable to replace alias "doctrine.odm.document_manager" with 
"a2lix_i18n_doctrine.object_manager".

我有 odm 的配置:

doctrine_mongodb:
  connections:
    default:
        server: "mongodb://%mongo_host%:%mongo_port%"
        options:
            username: "%mongo_username%"
            password: "%mongo_password%"
  default_database: "%mongo_dbname%"
  document_managers:
    default:
        # auto_mapping: true
        mappings:
            BlablaBundle:
                type: annotation
                dir: Document/
                prefix: Blabla\TratataBundle\Document
                alias: RE
            FOSUserBundle: ~
            SonataUserBundle: ~
            SonataAdminBundle: ~
            gedmo_translatable:
                type: annotation
                prefix: Gedmo\Translatable\Document
                dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Document"
                alias: GedmoTranslatable # this one is optional and will default to the name set for the mapping
                is_bundle: false
        filters:
            oneLocale:
                class: A2lix\I18nDoctrineBundle\Doctrine\ORM\Filter\OneLocaleFilter
                enabled: true

文档没有关于 MongoDB 配置的信息。如何解决?

4

1 回答 1

0

a2lix_i18n_doctrine 目前不支持 MongoDB。

于 2014-05-10T15:46:47.847 回答