Skip to content

Commit 8043ee4

Browse files
committed
fix
1 parent 6f55f51 commit 8043ee4

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/IQueryObjectDataSourceFactory.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22

33
namespace ADT\QueryObjectDataSource;
44

5-
interface IQueryObjectDataSourceFactory {
6-
5+
interface IQueryObjectDataSourceFactory
6+
{
77
/**
88
* @param \ADT\DoctrineComponents\QueryObject $queryObject
9-
* @param \Doctrine\ORM\EntityRepository|null $repo
109
* @return QueryObjectDataSource
1110
*/
12-
function create(\ADT\DoctrineComponents\QueryObject $queryObject, \Doctrine\ORM\EntityRepository $repo = null);
13-
11+
function create(\ADT\DoctrineComponents\QueryObject $queryObject);
1412
}

src/QueryObjectDataSource.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ class QueryObjectDataSource implements IDataSource
1515
/** @var \ADT\DoctrineComponents\ResultSet */
1616
protected $resultSet;
1717

18-
/** @var \Doctrine\ORM\EntityRepository */
19-
protected $repo;
20-
2118
/** @var \ADT\DoctrineComponents\QueryObject */
2219
protected $queryObject;
2320

@@ -44,7 +41,6 @@ class QueryObjectDataSource implements IDataSource
4441
public function __construct(\ADT\DoctrineComponents\QueryObject $queryObject)
4542
{
4643
$this->queryObject = $queryObject;
47-
$this->repo = $repo ?: $queryObject->getEntityManager();
4844
}
4945

5046
/**

0 commit comments

Comments
 (0)