Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-add class parameters used by the doctrine bridge #315

Merged
merged 1 commit into from Feb 13, 2018

Conversation

dbu
Copy link
Member

@dbu dbu commented Feb 12, 2018

looks like #287 went too far, as the doctrine bridge relies on some of these parameters.

@ob1201
Copy link

ob1201 commented Feb 12, 2018

with this installed

composer show -l | grep -i phpcr
doctrine/phpcr-bundle                    dev-master b571a9d = dev-master b571a9d Symfony DoctrinePHPCRBundle
doctrine/phpcr-odm                       1.4.4              = 1.4.4              Object-Document-Mapper for PHPCR
jackalope/jackalope                      1.3.4              = 1.3.4              Jackalope PHPCR library
phpcr/phpcr                              2.1.4              = 2.1.4              PHP Content Repository interfaces
phpcr/phpcr-utils                        1.4.0              = 1.4.0              PHP Content Repository implementation independant utilities

and this config

doctrine_phpcr:
   session:
       backend:
           type: doctrinedbal
           connection: dev
           caches:
               meta:  doctrine_cache.providers.phpcr_meta
               nodes: doctrine_cache.providers.phpcr_nodes
           logging: true
           profiling: true
           parameters:
               jackalope.factory:                Jackalope\Factory
               jackalope.check_login_on_server:  false
               jackalope.disable_stream_wrapper: false
               jackalope.auto_lastmodified:      true
               jackalope.disable_transactions:   false
       workspace: default
       username:  testuser
       password:  testpass
       options:
           jackalope.fetch_depth: 1
   odm:
       auto_mapping: true
       auto_generate_proxy_classes: '%kernel.debug%'
       proxy_dir: "%kernel.cache_dir%/doctrine/PHPCRProxies"
       proxy_namespace: PHPCRProxies
       locales:
           en: [de, fr]
           de: [en, fr]
           fr: [en, de]
       metadata_cache_driver:
           type:           array
           host:           ~
           port:           ~
           instance_class: ~
           class:          ~
           id:             ~
           namespace:      ~

get this error

The service "doctrine_phpcr.odm.default_xml_metadata_driver" has a dependency on a non-existent parameter "doctrine_phpcr.odm.metadata.xml.class". Did you mean one of these: "doctrine.orm.metadata.xml.class", "doctrine.orm.metadata.yml.class", "doctrine.orm.metadata.php.class", "doctrine_phpcr.odm.cache.array.class", "doctrine_phpcr.odm.cache.apc.class", "doctrine_phpcr.odm.cache.xcache.class", "doctrine_phpcr.odm.metadata.driver_chain.class", "doctrine_phpcr.odm.metadata.annotation.class", "doctrine_phpcr.odm.default_locale"?

switch to

composer show | grep phpcr-bundle
doctrine/phpcr-bundle                    dev-metadata-class-params 3684b24 Symfony DoctrinePHPCRBundle

eliminates the error

@dbu dbu merged commit 2a9a267 into master Feb 13, 2018
@dbu dbu deleted the metadata-class-params branch February 13, 2018 07:16
@dbu
Copy link
Member Author

dbu commented Feb 13, 2018

thanks for the confirmation @ob1201

i merged (and deleted the branch, so please switch back to dev-master for your experiments)

@ElectricMaxxx
Copy link
Contributor

We should be aware of: symfony/symfony#24835
later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants