Merge branch 'docs/DDC-3020'
This commit is contained in:
commit
02daf0049a
@ -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
|
convention and you are not forced to do this. You can change the
|
||||||
file extension easily enough.
|
file extension easily enough.
|
||||||
|
|
||||||
-
|
|
||||||
|
|
||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
<?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'));
|
$driver = new \Doctrine\ORM\Mapping\Driver\XmlDriver(array('/path/to/files1', '/path/to/files2'));
|
||||||
$config->setMetadataDriverImpl($driver);
|
$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
|
Simplified XML Driver
|
||||||
~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user