Code Monkey home page Code Monkey logo

Comments (7)

Ocramius avatar Ocramius commented on June 14, 2024

@diemuzi you don't really need multiple adapters, but probably just setting up different collectors/toolbar listeners (one per connection)

from zend-developer-tools.

diemuzi avatar diemuzi commented on June 14, 2024

Is there any documentation on how to make this work? Each of my databases have their own custom adapter and each database is located on another server. Looking into the code this doesn't appear to be easy to setup or pointed in any direction which would help one make this happen.

from zend-developer-tools.

Ocramius avatar Ocramius commented on June 14, 2024

@diemuzi DoctrineORMModule defines one profiler and one view per connection:

https://github.com/doctrine/DoctrineORMModule/blob/0.8.0-beta1/config/module.config.php#L271-L284

The thing you must be careful about is only to have the profiler's getName return the same name as the toolbar entry key.

from zend-developer-tools.

diemuzi avatar diemuzi commented on June 14, 2024

I should have stated this earlier, my fault... but do you have any examples when using Zend\Db? Doctrine is not my cup of tea to use. The Doctrine example gave me a starting place to look but I'm not understanding how to associate this with Zend\Db. Thanks for sticking with me on this.

from zend-developer-tools.

Ocramius avatar Ocramius commented on June 14, 2024

No, sorry, I don't have any Zend\Db examples at all :\

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

On 30 June 2013 16:06, Sammie S. Taunton [email protected] wrote:

I should have stated this earlier, my fault... but do you have any
examples when using Zend\Db? Doctrine is not my cup of tea to use. The
Doctrine example gave me a starting place to look but I'm not understanding
how to associate this with Zend\Db. Thanks for sticking with me on this.


Reply to this email directly or view it on GitHubhttps://github.com//issues/109#issuecomment-20247579
.

from zend-developer-tools.

diemuzi avatar diemuzi commented on June 14, 2024

Here is what I've come up with so far -> https://gist.github.com/diemuzi/5895328

I see a new icon on the toolbar but it's giving the error of:

  1. Unable to fetch or create an instance for slave.

I simply copied the DbCollector and renamed it to SlaveCollector and changed db to slave inside the file (renaming the class name too of course). I also copied the db.phtml to slave.phtml. Then added the configuration in the 2 files.

from zend-developer-tools.

diemuzi avatar diemuzi commented on June 14, 2024

@Ocramius Thanks for helping me out in IRC. Working like a charm now =)

from zend-developer-tools.

Related Issues (20)

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.