1
0
mirror of synced 2025-01-10 02:57:10 +03:00

Merge branch 'docs/DDC-3020'

This commit is contained in:
Marco Pivetta 2014-03-11 11:30:18 +01:00
commit 02daf0049a

View File

@ -44,8 +44,6 @@ In order to work, this requires certain conventions:
convention and you are not forced to do this. You can change the
file extension easily enough.
-
.. code-block:: php
<?php
@ -64,6 +62,16 @@ of the constructor, like this:
$driver = new \Doctrine\ORM\Mapping\Driver\XmlDriver(array('/path/to/files1', '/path/to/files2'));
$config->setMetadataDriverImpl($driver);
.. warning::
Note that Doctrine ORM does not modify any settings for ``libxml``,
therefore, external XML entities may or may not be enabled or
configured correctly.
XML mappings are not XXE/XEE attack vectors since they are not
related with user input, but it is recommended that you do not
use external XML entities in your mapping files to avoid running
into unexpected behaviour.
Simplified XML Driver
~~~~~~~~~~~~~~~~~~~~~