8000 minor #7271 Mention schema validation command (mikaelz) · fabpot/symfony-docs@27aa549 · GitHub
[go: up one dir, main page]

Skip to content

Commit 27aa549

Browse files
committed
minor symfony#7271 Mention schema validation command (mikaelz)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes symfony#7271). Discussion ---------- Mention schema validation command After creating the mapping it would be helpful to also validate with the existing doctrine:schema:validate command Commits ------- 06606d8 Mention schema validation command
2 parents 0376c16 + 06606d8 commit 27aa549

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doctrine.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,15 @@ see the :ref:`doctrine-field-types` section.
382382
class Product
383383
// ...
384384

385+
.. tip::
386+
387+
After creating your entities you should validate the mappings with the
388+
following command::
389+
390+
.. code-block:: terminal
391+
392+
$ php bin/console doctrine:schema:validate
393+
385394
.. _doctrine-generating-getters-and-setters:
386395

387396
Generating Getters and Setters

0 commit comments

Comments
 (0)
0