Skip to content

Commit 3c414e3

Browse files
authored
Merge branch 'master' into patch-2
2 parents a5d28a4 + be8228d commit 3c414e3

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

src/Codeception/Module/Doctrine2.php

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
use function var_export;
3939

4040
/**
41-
* Access the database using [Doctrine2 ORM](https://docs.doctrine-project.org/projects/doctrine-orm/en/latest/).
41+
* Access the database using [Doctrine ORM](https://docs.doctrine-project.org/projects/doctrine-orm/en/latest/).
4242
*
4343
* When used with Symfony or Zend Framework 2, Doctrine's Entity Manager is automatically retrieved from Service Locator.
4444
* Set up your `functional.suite.yml` like this:
@@ -106,23 +106,15 @@
106106
* $greenFoo = $this->fooRepository->findOneBy(['color' => 'green']);
107107
* ```
108108
*
109-
* ## Status
110-
*
111-
* * Maintainer: **davert**
112-
* * Stability: **stable**
113-
* * Contact: [email protected]
114-
*
115-
* ## Config
116-
*
117109
* ## Public Properties
118110
*
119111
* * `em` - Entity Manager
120112
*
121-
* ## Note on parameters
113+
* ## Doctrine `Criteria` as query parameters
122114
*
123-
* Every method that expects some parameters to be checked against values in the database (`see...()`,
124-
* `dontSee...()`, `grab...()`) can accept instance of
125-
* [\Doctrine\Common\Collections\Criteria](https://www.doctrine-project.org/api/collections/latest/Doctrine/Common/Collections/Criteria.html)
115+
* Every method that expects some query parameters (`see...()`,
116+
* `dontSee...()`, `grab...()`) also accepts an instance of
117+
* [\Doctrine\Common\Collections\Criteria](https://www.doctrine-project.org/projects/doctrine-collections/en/stable/expressions.html)
126118
* for more flexibility, e.g.:
127119
*
128120
* ```php
@@ -903,7 +895,6 @@ protected function proceedSeeInRepository(string $entity, array $params = []): a
903895
* @param string $field
904896
* @param array $params
905897
* @return mixed
906-
* @version 1.1
907898
*/
908899
public function grabFromRepository(string $entity, string $field, array $params = [])
909900
{
@@ -932,7 +923,6 @@ public function grabFromRepository(string $entity, string $field, array $params
932923
* @param class-string<T> $entity
933924
* @param array $params . For `IS NULL`, use `['field' => null]`
934925
* @return list<T>
935-
* @version 1.1
936926
*/
937927
public function grabEntitiesFromRepository(string $entity, array $params = []): array
938928
{

0 commit comments

Comments
 (0)