Removing unused $entityManager
variable
This commit is contained in:
parent
1e16cb83f8
commit
131aac531a
@ -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');
|
||||||
|
@ -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');
|
||||||
|
@ -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');
|
||||||
|
@ -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');
|
||||||
|
@ -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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user