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

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

Build:
Build:
LAST BUILD BRANCH: upgrade-doctrine-orm
DEFAULT BRANCH: master
Ran 04 Sep 2018 03:38PM UTC
Jobs 4
Files 11
Run time 31s
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

pending completion
120

push

travis-ci

mpdude
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.

210 of 211 relevant lines covered (99.53%)

70.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 120.1 04 Sep 2018 03:39PM UTC 0
99.58
Travis Job 120.1
2 120.2 04 Sep 2018 03:38PM UTC 0
99.58
Travis Job 120.2
3 120.3 04 Sep 2018 03:38PM UTC 0
99.53
Travis Job 120.3
4 120.4 04 Sep 2018 03:38PM UTC 0
99.53
Travis Job 120.4
Source Files on build 120
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #120
  • f3ab463b on github
  • Next Build on avoid_creating_event_manager (#122)
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