1
0
mirror of synced 2025-02-10 01:09:26 +03:00

Removing unused $entityManager variable

This commit is contained in:
Marco Pivetta 2016-05-26 21:25:06 +02:00 committed by Luís Cobucci
parent 1e16cb83f8
commit 131aac531a
No known key found for this signature in database
GPG Key ID: EC61C5F01750ED3C
5 changed files with 5 additions and 15 deletions

View File

@ -32,8 +32,6 @@ final class MixedQueryFetchJoinArrayHydrationPerformanceBench
public function init() public function init()
{ {
$entityManager = EntityManagerFactory::getEntityManager([]);
$resultSet = [ $resultSet = [
[ [
'u__id' => '1', 'u__id' => '1',
@ -73,7 +71,7 @@ final class MixedQueryFetchJoinArrayHydrationPerformanceBench
} }
$this->stmt = new HydratorMockStatement($resultSet); $this->stmt = new HydratorMockStatement($resultSet);
$this->hydrator = new ArrayHydrator($entityManager); $this->hydrator = new ArrayHydrator(EntityManagerFactory::getEntityManager([]));
$this->rsm = new ResultSetMapping; $this->rsm = new ResultSetMapping;
$this->rsm->addEntityResult(CmsUser::class, 'u'); $this->rsm->addEntityResult(CmsUser::class, 'u');

View File

@ -32,8 +32,6 @@ final class SimpleQueryArrayHydrationPerformanceBench
public function init() public function init()
{ {
$entityManager = EntityManagerFactory::getEntityManager([]);
$resultSet = [ $resultSet = [
[ [
'u__id' => '1', 'u__id' => '1',
@ -65,7 +63,7 @@ final class SimpleQueryArrayHydrationPerformanceBench
} }
$this->stmt = new HydratorMockStatement($resultSet); $this->stmt = new HydratorMockStatement($resultSet);
$this->hydrator = new ArrayHydrator($entityManager); $this->hydrator = new ArrayHydrator(EntityManagerFactory::getEntityManager([]));
$this->rsm = new ResultSetMapping; $this->rsm = new ResultSetMapping;
$this->rsm->addEntityResult(CmsUser::class, 'u'); $this->rsm->addEntityResult(CmsUser::class, 'u');

View File

@ -33,8 +33,6 @@ final class SimpleQueryFullObjectHydrationPerformanceBench
public function init() public function init()
{ {
$entityManager = EntityManagerFactory::getEntityManager([]);
$resultSet = [ $resultSet = [
[ [
'u__id' => '1', 'u__id' => '1',
@ -56,7 +54,7 @@ final class SimpleQueryFullObjectHydrationPerformanceBench
} }
$this->stmt = new HydratorMockStatement($resultSet); $this->stmt = new HydratorMockStatement($resultSet);
$this->hydrator = new ObjectHydrator($entityManager); $this->hydrator = new ObjectHydrator(EntityManagerFactory::getEntityManager([]));
$this->rsm = new ResultSetMapping; $this->rsm = new ResultSetMapping;
$this->rsm->addEntityResult(CmsUser::class, 'u'); $this->rsm->addEntityResult(CmsUser::class, 'u');

View File

@ -32,8 +32,6 @@ final class SimpleQueryPartialObjectHydrationPerformanceBench
public function init() public function init()
{ {
$entityManager = EntityManagerFactory::getEntityManager([]);
$resultSet = [ $resultSet = [
[ [
'u__id' => '1', 'u__id' => '1',
@ -65,7 +63,7 @@ final class SimpleQueryPartialObjectHydrationPerformanceBench
} }
$this->stmt = new HydratorMockStatement($resultSet); $this->stmt = new HydratorMockStatement($resultSet);
$this->hydrator = new ObjectHydrator($entityManager); $this->hydrator = new ObjectHydrator(EntityManagerFactory::getEntityManager([]));
$this->rsm = new ResultSetMapping; $this->rsm = new ResultSetMapping;
$this->rsm->addEntityResult(CmsUser::class, 'u'); $this->rsm->addEntityResult(CmsUser::class, 'u');

View File

@ -32,8 +32,6 @@ final class SimpleQueryScalarHydrationPerformanceBench
public function init() public function init()
{ {
$entityManager = EntityManagerFactory::getEntityManager([]);
$resultSet = [ $resultSet = [
[ [
'u__id' => '1', 'u__id' => '1',
@ -65,7 +63,7 @@ final class SimpleQueryScalarHydrationPerformanceBench
} }
$this->stmt = new HydratorMockStatement($resultSet); $this->stmt = new HydratorMockStatement($resultSet);
$this->hydrator = new ScalarHydrator($entityManager); $this->hydrator = new ScalarHydrator(EntityManagerFactory::getEntityManager([]));
$this->rsm = new ResultSetMapping; $this->rsm = new ResultSetMapping;
$this->rsm->addEntityResult(CmsUser::class, 'u'); $this->rsm->addEntityResult(CmsUser::class, 'u');