1
0
mirror of synced 2024-12-04 18:56:06 +03:00

Merge pull request #1373 from aivus/patch-1

Add note about "symfony/yaml" dependency for yml mappings
This commit is contained in:
Marco Pivetta 2015-04-06 04:09:51 +01:00
commit 6a41b73318

View File

@ -79,6 +79,13 @@ Or if you prefer YAML:
$config = Setup::createYAMLMetadataConfiguration($paths, $isDevMode);
$entityManager = EntityManager::create($dbParams, $config);
.. note::
If you want to use yml mapping you should add yaml dependency to your `composer.json`:
::
"symfony/yaml": "*"
Inside the ``Setup`` methods several assumptions are made:
- If `$isDevMode` is true caching is done in memory with the ``ArrayCache``. Proxy objects are recreated on every request.