Skip to content

Commit 15c1a02

Browse files
committed
Moved the Doctrine Extensions to the main Doctrine article
1 parent ab7e6b7 commit 15c1a02

File tree

3 files changed

+11
-33
lines changed

3 files changed

+11
-33
lines changed

_build/redirection_map

+1
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@
460460
/testing/doctrine /testing/database
461461
/doctrine/lifecycle_callbacks /doctrine/events
462462
/doctrine/event_listeners_subscribers /doctrine/events
463+
/doctrine/common_extensions /doctrine
463464
/best_practices/index /best_practices
464465
/best_practices/introduction /best_practices
465466
/best_practices/creating-the-project /best_practices

doctrine.rst

+10-1
Original file line numberDiff line numberDiff line change
@@ -804,14 +804,21 @@ Database Testing
804804

805805
Read the article about :doc:`testing code that interacts with the database </testing/database>`.
806806

807+
Doctrine Extensions (Timestampable, Translatable, etc.)
808+
-------------------------------------------------------
809+
810+
Doctrine community has created some extensions to implement common needs such as
811+
*"set the value of the createdAt property automatically when creating an entity"*.
812+
Read more about the `available Doctrine extensions`_ and use the
813+
`StofDoctrineExtensionsBundle`_ to integrate them in your application.
814+
807815
Learn more
808816
----------
809817

810818
.. toctree::
811819
:maxdepth: 1
812820

813821
doctrine/associations
814-
doctrine/common_extensions
815822
doctrine/events
816823
doctrine/registration_form
817824
doctrine/custom_dql_functions
@@ -839,3 +846,5 @@ Learn more
839846
.. _`Doctrine screencast series`: https://symfonycasts.com/screencast/symfony-doctrine
840847
.. _`API Platform`: https://api-platform.com/docs/core/validation/
841848
.. _`PDO`: https://php.net/pdo
849+
.. _`available Doctrine extensions`: https://github.com/Atlantic18/DoctrineExtensions
850+
.. _`StofDoctrineExtensionsBundle`: https://github.com/antishov/StofDoctrineExtensionsBundle

doctrine/common_extensions.rst

-32
This file was deleted.

0 commit comments

Comments
 (0)