Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add doctrine orm installation instructions#11332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletionbest_practices/business-logic.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -191,6 +191,15 @@ library or strategy you want for this.

In practice, many Symfony applications rely on the independent
`Doctrine project`_ to define their model using entities and repositories.

Doctrine support is not enabled by default in Symfony. So to use Doctrine
as shown in the examples below you will need to install :doc:`Doctrine ORM support </doctrine>`
by executing the following command:

.. code-block:: terminal

$ composer require symfony/orm-pack

Just like with business logic, we recommend storing Doctrine entities in the
AppBundle.

Expand DownExpand Up@@ -301,7 +310,7 @@ the following command to install the Doctrine fixtures bundle:

.. code-block:: terminal

$ composer require"doctrine/doctrine-fixtures-bundle"
$ composer require doctrine/doctrine-fixtures-bundle

Then, enable the bundle in ``AppKernel.php``, but only for the ``dev`` and
``test`` environments::
Expand DownExpand Up@@ -357,6 +366,7 @@ Next: :doc:`/best_practices/controllers`

.. _`full definition`: https://en.wikipedia.org/wiki/Business_logic
.. _`Doctrine project`: http://www.doctrine-project.org/
.. _`Doctrine ORM support`: https://symfony.com/doc/current/doctrine.html
.. _`fixture class`: https://symfony.com/doc/current/bundles/DoctrineFixturesBundle/index.html#writing-simple-fixtures
.. _`PSR-1`: https://www.php-fig.org/psr/psr-1/
.. _`PSR-2`: https://www.php-fig.org/psr/psr-2/
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp