#1001 DDC-3005 - coverage annotations, minor CS fixes
This commit is contained in:
parent
0c8a31bf2b
commit
22e12e0043
@ -152,6 +152,7 @@ class DefaultEntityHydrator implements EntityHydrator
|
||||
}
|
||||
|
||||
$result = $this->uow->createEntity($entry->class, $data, $hints);
|
||||
|
||||
$this->uow->hydrationComplete();
|
||||
|
||||
return $result;
|
||||
|
@ -148,6 +148,7 @@ class DefaultQueryCache implements QueryCache
|
||||
if ($this->cacheLogger !== null) {
|
||||
$this->cacheLogger->entityCacheMiss($assocRegion->getName(), $assocKey);
|
||||
}
|
||||
|
||||
$this->uow->hydrationComplete();
|
||||
|
||||
return null;
|
||||
@ -176,6 +177,7 @@ class DefaultQueryCache implements QueryCache
|
||||
if ($this->cacheLogger !== null) {
|
||||
$this->cacheLogger->entityCacheMiss($assocRegion->getName(), $assocKey);
|
||||
}
|
||||
|
||||
$this->uow->hydrationComplete();
|
||||
|
||||
return null;
|
||||
|
@ -204,6 +204,9 @@ class PostLoadEventTest extends \Doctrine\Tests\OrmFunctionalTestCase
|
||||
$phonenumbersCol->first();
|
||||
}
|
||||
|
||||
/**
|
||||
* @group DDC-3005
|
||||
*/
|
||||
public function testAssociationsArePopulatedWhenEventIsFired()
|
||||
{
|
||||
$checkerListener = new PostLoadListenerCheckAssociationsArePopulated();
|
||||
@ -218,6 +221,9 @@ class PostLoadEventTest extends \Doctrine\Tests\OrmFunctionalTestCase
|
||||
$this->assertTrue($checkerListener->populated, 'Association of email is not populated in postLoad event');
|
||||
}
|
||||
|
||||
/**
|
||||
* @group DDC-3005
|
||||
*/
|
||||
public function testEventRaisedCorrectTimesWhenOtherEntityLoadedInEventHandler()
|
||||
{
|
||||
$eventManager = $this->_em->getEventManager();
|
||||
|
Loading…
Reference in New Issue
Block a user