diff --git a/src/Codeception/Module/Doctrine.php b/src/Codeception/Module/Doctrine.php index 35c79df..0413ca3 100644 --- a/src/Codeception/Module/Doctrine.php +++ b/src/Codeception/Module/Doctrine.php @@ -669,8 +669,7 @@ private function extractPrimaryKey(object $instance) } /** - * Loads fixtures. Fixture can be specified as a fully qualified class name, - * an instance, or an array of class names/instances. + * Loads fixtures. The fixture class can be specified as a fully qualified class name, an instance, or an array of class names/instances. * * ```php * loadFixtures(new AppFixtures); * ``` * - * By default fixtures are loaded in 'append' mode. To replace all - * data in database, use `false` as second parameter: + * By default, the fixtures are loaded in 'append' mode. To replace all data in database, pass `false` as second parameter: * * ```php * grabService(SomeService::class); + * $appFixtures = new AppFixtures($someService); + * $appFixtures->load(); + * ``` + * * Load your fixtures like this (requires [Module Cli](https://codeception.com/docs/modules/Cli)): + * ```bash + * $I->runShellCommand('php bin/console doctrine:fixtures:load --no-interaction --env=test'); + * ``` + * * @param class-string|class-string[]|list $fixtures * @param bool $append * @throws ModuleException