• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

webfactory / doctrine-orm-test-infrastructure / 121 / 3
100%
master: 98%

Build:
Build:
LAST BUILD BRANCH: upgrade-doctrine-orm
DEFAULT BRANCH: master
Ran 04 Sep 2018 03:48PM UTC
Files 11
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Sep 2018 03:46PM UTC coverage: 99.531%. Remained the same
121.3

Pull #28

travis-ci

web-flow
Avoid creating an EventManager

If we create the EventManager ourselves, it is getting in our way when we try to
re-use an existing DBAL connection: The DBAL Connection is holding the autoritative
EventManager instance. When calling EntityManager::create() and passing in a
pre-existing connection as well as the EventManager, this method will make sure both
EventManagers are the same.

So, we simply avoid creating the EventManager and instead provide the
one contained in our EntityManager.

This requires a little tweaking to how entity mappings can be registered
through the ResolveTargetEntityListener: We can create the ResolveTargetEntityListener
immediately when constructing the ORMInfrastructure, but have to postpone
registering it in the EventManager to the point where that is actually available.
Pull Request #28: Make it possible to provide/pass in the DBAL connection

212 of 213 relevant lines covered (99.53%)

17.62 hits per line

Source Files on job 121.3
  • Tree
  • List 0
  • Changed 8
  • Source Changed 1
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 121
  • Travis Job 121.3
  • e6c43b06 on github
  • Prev Job for on avoid_creating_event_manager (#119.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc