Skip to content

Commit d635f13

Browse files
Update Doctrine.php: Adding upgrade instructions (#29)
1 parent 465ef7d commit d635f13

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Codeception/Module/Doctrine.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,15 @@
3838
use function var_export;
3939

4040
/**
41+
* Upgrading from Module "Doctrine2":
42+
* * In your `composer.json`: Replace `"codeception/module-doctrine2"` with `"codeception/module-doctrine"`
43+
* * In your `Acceptance.suite.yml`, `Functional.suite.yml`, and `Unit.suite.yml`: Replace `- Doctrine2:` with `- Doctrine:`
44+
* * In any file in `Support/Helper/`: Change `$this->getModule('Doctrine2')` to `$this->getModule('Doctrine')`
45+
*
4146
* Access the database using [Doctrine ORM](https://docs.doctrine-project.org/projects/doctrine-orm/en/latest/).
4247
*
4348
* When used with Symfony or Zend Framework 2, Doctrine's Entity Manager is automatically retrieved from Service Locator.
44-
* Set up your `functional.suite.yml` like this:
49+
* Set up your `Functional.suite.yml` like this:
4550
*
4651
* ```yaml
4752
* modules:

0 commit comments

Comments
 (0)