Add deprecation note to getting-started chapter
This commit is contained in:
parent
d36aec8fb7
commit
ff1df41485
@ -103,18 +103,21 @@ Install Doctrine using the Composer Dependency Management tool, by calling:
|
|||||||
$ composer install
|
$ composer install
|
||||||
|
|
||||||
This will install the packages Doctrine Common, Doctrine DBAL, Doctrine ORM,
|
This will install the packages Doctrine Common, Doctrine DBAL, Doctrine ORM,
|
||||||
Symfony YAML and Symfony Console into the `vendor` directory. The Symfony
|
into the `vendor` directory.
|
||||||
dependencies are not required by Doctrine but will be used in this tutorial.
|
|
||||||
|
|
||||||
Add the following directories:
|
Add the following directories:
|
||||||
::
|
::
|
||||||
|
|
||||||
doctrine2-tutorial
|
doctrine2-tutorial
|
||||||
|-- config
|
|-- config
|
||||||
| |-- xml
|
| `-- xml
|
||||||
| `-- yaml
|
| `-- yaml
|
||||||
`-- src
|
`-- src
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
The YAML driver is deprecated and will be removed in version 3.0.
|
||||||
|
It is strongly recommended to switch to one of the other mappings.
|
||||||
|
|
||||||
Obtaining the EntityManager
|
Obtaining the EntityManager
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
@ -150,6 +153,10 @@ step:
|
|||||||
// obtaining the entity manager
|
// obtaining the entity manager
|
||||||
$entityManager = EntityManager::create($conn, $config);
|
$entityManager = EntityManager::create($conn, $config);
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
The YAML driver is deprecated and will be removed in version 3.0.
|
||||||
|
It is strongly recommended to switch to one of the other mappings.
|
||||||
|
|
||||||
The require_once statement sets up the class autoloading for Doctrine and
|
The require_once statement sets up the class autoloading for Doctrine and
|
||||||
its dependencies using Composer's autoloader.
|
its dependencies using Composer's autoloader.
|
||||||
|
|
||||||
@ -308,6 +315,10 @@ but you only need to choose one.
|
|||||||
</entity>
|
</entity>
|
||||||
</doctrine-mapping>
|
</doctrine-mapping>
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
The YAML driver is deprecated and will be removed in version 3.0.
|
||||||
|
It is strongly recommended to switch to one of the other mappings.
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
# config/yaml/Product.dcm.yml
|
# config/yaml/Product.dcm.yml
|
||||||
@ -851,6 +862,10 @@ the ``Product`` before:
|
|||||||
</entity>
|
</entity>
|
||||||
</doctrine-mapping>
|
</doctrine-mapping>
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
The YAML driver is deprecated and will be removed in version 3.0.
|
||||||
|
It is strongly recommended to switch to one of the other mappings.
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
# config/yaml/Bug.dcm.yml
|
# config/yaml/Bug.dcm.yml
|
||||||
@ -963,6 +978,10 @@ Finally, we'll add metadata mappings for the ``User`` entity.
|
|||||||
</entity>
|
</entity>
|
||||||
</doctrine-mapping>
|
</doctrine-mapping>
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
The YAML driver is deprecated and will be removed in version 3.0.
|
||||||
|
It is strongly recommended to switch to one of the other mappings.
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
# config/yaml/User.dcm.yml
|
# config/yaml/User.dcm.yml
|
||||||
@ -1493,6 +1512,10 @@ we have to adjust the metadata slightly.
|
|||||||
</entity>
|
</entity>
|
||||||
</doctrine-mapping>
|
</doctrine-mapping>
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
The YAML driver is deprecated and will be removed in version 3.0.
|
||||||
|
It is strongly recommended to switch to one of the other mappings.
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
Bug:
|
Bug:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user