Skip to content

Commit be8228d

Browse files
authored
Merge pull request #67 from ThomasLandauer/patch-1
Some cleanup
2 parents 2bbd498 + 5d50c78 commit be8228d

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:
@@ -88,23 +88,15 @@
8888
* purge_mode: 1 # 1: DELETE (=default), 2: TRUNCATE
8989
* ```
9090
*
91-
* ## Status
92-
*
93-
* * Maintainer: **davert**
94-
* * Stability: **stable**
95-
* * Contact: codecept@davert.mail.ua
96-
*
97-
* ## Config
98-
*
9991
* ## Public Properties
10092
*
10193
* * `em` - Entity Manager
10294
*
103-
* ## Note on parameters
95+
* ## Doctrine `Criteria` as query parameters
10496
*
105-
* Every method that expects some parameters to be checked against values in the database (`see...()`,
106-
* `dontSee...()`, `grab...()`) can accept instance of
107-
* [\Doctrine\Common\Collections\Criteria](https://www.doctrine-project.org/api/collections/latest/Doctrine/Common/Collections/Criteria.html)
97+
* Every method that expects some query parameters (`see...()`,
98+
* `dontSee...()`, `grab...()`) also accepts an instance of
99+
* [\Doctrine\Common\Collections\Criteria](https://www.doctrine-project.org/projects/doctrine-collections/en/stable/expressions.html)
108100
* for more flexibility, e.g.:
109101
*
110102
* ```php
@@ -885,7 +877,6 @@ protected function proceedSeeInRepository(string $entity, array $params = []): a
885877
* @param string $field
886878
* @param array $params
887879
* @return mixed
888-
* @version 1.1
889880
*/
890881
public function grabFromRepository(string $entity, string $field, array $params = [])
891882
{
@@ -914,7 +905,6 @@ public function grabFromRepository(string $entity, string $field, array $params
914905
* @param class-string<T> $entity
915906
* @param array $params . For `IS NULL`, use `['field' => null]`
916907
* @return list<T>
917-
* @version 1.1
918908
*/
919909
public function grabEntitiesFromRepository(string $entity, array $params = []): array
920910
{

0 commit comments

Comments
 (0)