|
38 | 38 | use function var_export; |
39 | 39 |
|
40 | 40 | /** |
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/). |
42 | 42 | * |
43 | 43 | * When used with Symfony or Zend Framework 2, Doctrine's Entity Manager is automatically retrieved from Service Locator. |
44 | 44 | * Set up your `functional.suite.yml` like this: |
|
106 | 106 | * $greenFoo = $this->fooRepository->findOneBy(['color' => 'green']); |
107 | 107 | * ``` |
108 | 108 | * |
109 | | - * ## Status |
110 | | - * |
111 | | - * * Maintainer: **davert** |
112 | | - * * Stability: **stable** |
113 | | - * * Contact: codecept@davert.mail.ua |
114 | | - * |
115 | | - * ## Config |
116 | | - * |
117 | 109 | * ## Public Properties |
118 | 110 | * |
119 | 111 | * * `em` - Entity Manager |
120 | 112 | * |
121 | | - * ## Note on parameters |
| 113 | + * ## Doctrine `Criteria` as query parameters |
122 | 114 | * |
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) |
126 | 118 | * for more flexibility, e.g.: |
127 | 119 | * |
128 | 120 | * ```php |
@@ -903,7 +895,6 @@ protected function proceedSeeInRepository(string $entity, array $params = []): a |
903 | 895 | * @param string $field |
904 | 896 | * @param array $params |
905 | 897 | * @return mixed |
906 | | - * @version 1.1 |
907 | 898 | */ |
908 | 899 | public function grabFromRepository(string $entity, string $field, array $params = []) |
909 | 900 | { |
@@ -932,7 +923,6 @@ public function grabFromRepository(string $entity, string $field, array $params |
932 | 923 | * @param class-string<T> $entity |
933 | 924 | * @param array $params . For `IS NULL`, use `['field' => null]` |
934 | 925 | * @return list<T> |
935 | | - * @version 1.1 |
936 | 926 | */ |
937 | 927 | public function grabEntitiesFromRepository(string $entity, array $params = []): array |
938 | 928 | { |
|
0 commit comments