Skip to content

Some cleanup #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions src/Codeception/Module/Doctrine2.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
use function var_export;

/**
* Access the database using [Doctrine2 ORM](https://docs.doctrine-project.org/projects/doctrine-orm/en/latest/).
* Access the database using [Doctrine ORM](https://docs.doctrine-project.org/projects/doctrine-orm/en/latest/).
*
* When used with Symfony or Zend Framework 2, Doctrine's Entity Manager is automatically retrieved from Service Locator.
* Set up your `functional.suite.yml` like this:
Expand Down Expand Up @@ -88,23 +88,15 @@
* purge_mode: 1 # 1: DELETE (=default), 2: TRUNCATE
* ```
*
* ## Status
*
* * Maintainer: **davert**
* * Stability: **stable**
* * Contact: codecept@davert.mail.ua
*
* ## Config
*
* ## Public Properties
*
* * `em` - Entity Manager
*
* ## Note on parameters
* ## Doctrine `Criteria` as query parameters
*
* Every method that expects some parameters to be checked against values in the database (`see...()`,
* `dontSee...()`, `grab...()`) can accept instance of
* [\Doctrine\Common\Collections\Criteria](https://www.doctrine-project.org/api/collections/latest/Doctrine/Common/Collections/Criteria.html)
* Every method that expects some query parameters (`see...()`,
* `dontSee...()`, `grab...()`) also accepts an instance of
* [\Doctrine\Common\Collections\Criteria](https://www.doctrine-project.org/projects/doctrine-collections/en/stable/expressions.html)
* for more flexibility, e.g.:
*
* ```php
Expand Down Expand Up @@ -885,7 +877,6 @@ protected function proceedSeeInRepository(string $entity, array $params = []): a
* @param string $field
* @param array $params
* @return mixed
* @version 1.1
*/
public function grabFromRepository(string $entity, string $field, array $params = [])
{
Expand Down Expand Up @@ -914,7 +905,6 @@ public function grabFromRepository(string $entity, string $field, array $params
* @param class-string<T> $entity
* @param array $params . For `IS NULL`, use `['field' => null]`
* @return list<T>
* @version 1.1
*/
public function grabEntitiesFromRepository(string $entity, array $params = []): array
{
Expand Down