Skip to content

Commit 3ee7d96

Browse files
authored
Adjust comments (#10160)
1 parent 9f926f0 commit 3ee7d96

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/en/tutorials/getting-started.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ step:
141141
142142
require_once "vendor/autoload.php";
143143
144-
// Create a simple "default" Doctrine ORM configuration for Annotations
144+
// Create a simple "default" Doctrine ORM configuration for Attributes
145145
$config = ORMSetup::createAttributeMetadataConfiguration(
146146
paths: array(__DIR__."/src"),
147147
isDevMode: true,

lib/Doctrine/ORM/EntityManager.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@
5454
* the static create() method. The quickest way to obtain a fully
5555
* configured EntityManager is:
5656
*
57-
* use Doctrine\ORM\Tools\Setup;
57+
* use Doctrine\ORM\Tools\ORMSetup;
5858
* use Doctrine\ORM\EntityManager;
5959
*
60-
* $paths = array('/path/to/entity/mapping/files');
60+
* $paths = ['/path/to/entity/mapping/files'];
6161
*
62-
* $config = Setup::createAnnotationMetadataConfiguration($paths);
63-
* $dbParams = array('driver' => 'pdo_sqlite', 'memory' => true);
62+
* $config = ORMSetup::createAttributeMetadataConfiguration($paths);
63+
* $dbParams = ['driver' => 'pdo_sqlite', 'memory' => true];
6464
* $entityManager = EntityManager::create($dbParams, $config);
6565
*
6666
* For more information see

0 commit comments

Comments
 (0)