Git Product home page Git Product logo

doctrineormphpcradapterbundle's People

Contributors

electricmaxxx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

joschi127

doctrineormphpcradapterbundle's Issues

Issue with enabling the bundle on symfony 2.8.1

Is this thing completely dead?

I am getting this error with the minimum config:

doctrine_orm_phpcr_adapter:
    managers:
        reference-phpcr:
            defaul: doctrine_phpcr.odm.default_document_manager
        reference-dbal-orm:
            default: doctrine.orm.default_entity_manager
    adapter:
        mapping: true
        auto_generate_proxy_classes: %kernel.debug%
[InvalidArgumentException]                       
  Bundle "0" does not exist or it is not enabled.

find a way to trigger the event listener adder

The ObjectAdapterManager got own event listeners/subscribers that works very well.
By calling objectAdapterManager->addListenersToEventManagers() they should be added to the event managers the different object managers provides.

I tried to do the following in the bundles extension class, when creating the service definition:

        $container
            ->setDefinition(
                $adapterManager['service_name'],
                new DefinitionDecorator('doctrine_orm_phpcr_adapter.adapter_manager.abstract')
            )
            ->setArguments(array(
                new Reference($abstractManagerServiceId),
                new Reference($abstractEventManagerServiceId)
            ))
            ->addMethodCall('addListenersToEventManagers') 
        ;

(that method call should triggered by some configuration #7)

Thought that can work but does not. I bridged that problem by calling the service from container and calling manually before persisting stuff, but that can't be the right way.

implement a manager type mapping

Atm the current manager comes from the registry when the referenced objects is still persisted. But for new persist i take the ' default' one only. Here i would need a mapping for the manager to use.

do i need connections

i got a implementation for handling different managers, configurations and event managers per name, do i need the connections mechanims too, just to implement the SymfonyBridge EventListenerSubriberCompilerPass?

make adapters events available

The libraries events (preBindReference, ..., onFlushReference) should be available by tagging them. Same as other doctrine bundles serve it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.