diff --git a/docs/en/reference/xml-mapping.rst b/docs/en/reference/xml-mapping.rst index d82c82fab..dc1dd5fd7 100644 --- a/docs/en/reference/xml-mapping.rst +++ b/docs/en/reference/xml-mapping.rst @@ -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 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 ~~~~~~~~~~~~~~~~~~~~~