src/Component/Grid/DataSource/Doctrine/MongoDB/DataSourceBuilder.php 1 location
|
@@ 55-63 (lines=9) @@
|
| 52 |
|
* @param Repository $repository |
| 53 |
|
* @param mixed[] $options |
| 54 |
|
*/ |
| 55 |
|
public function __construct(Repository $repository, array $options = []) |
| 56 |
|
{ |
| 57 |
|
$repositoryMethod = isset($options['repository_method']) |
| 58 |
|
? $options['repository_method'] |
| 59 |
|
: 'createQueryBuilderForCollection'; |
| 60 |
|
|
| 61 |
|
$this->repository = $repository; |
| 62 |
|
$this->queryBuilder = $this->repository->$repositoryMethod(); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
/** |
| 66 |
|
* {@inheritdoc} |
src/Component/Grid/DataSource/Doctrine/ORM/DataSourceBuilder.php 1 location
|
@@ 55-63 (lines=9) @@
|
| 52 |
|
* @param Repository $repository |
| 53 |
|
* @param mixed[] $options |
| 54 |
|
*/ |
| 55 |
|
public function __construct(Repository $repository, array $options = []) |
| 56 |
|
{ |
| 57 |
|
$repositoryMethod = isset($options['repository_method']) |
| 58 |
|
? $options['repository_method'] |
| 59 |
|
: 'createQueryBuilderForCollection'; |
| 60 |
|
|
| 61 |
|
$this->repository = $repository; |
| 62 |
|
$this->queryBuilder = $this->repository->$repositoryMethod(); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
/** |
| 66 |
|
* {@inheritdoc} |