Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a14517d

Browse files
committed
Add note about "symfony/yaml" dependency for yml mappings
1 parent 354ccdc commit a14517d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

docs/en/reference/configuration.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ Or if you prefer YAML:
7979
$config = Setup::createYAMLMetadataConfiguration($paths, $isDevMode);
8080
$entityManager = EntityManager::create($dbParams, $config);
8181
82+
.. note::
83+
If you want to use yml mapping you should add yaml dependency to your `composer.json`:
84+
85+
::
86+
87+
"symfony/yaml": "*"
88+
8289
Inside the ``Setup`` methods several assumptions are made:
8390

8491
- If `$isDevMode` is true caching is done in memory with the ``ArrayCache``. Proxy objects are recreated on every request.

0 commit comments

Comments
 (0)