-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DQL custom functions on doctrine reference page #3946
Changes from 10 commits
2541f86
b5f9ac0
95f53ae
98dee12
69efced
4a046fa
1ce3fcc
044e1eb
9536c17
b4f3151
39957c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -411,3 +411,39 @@ Each connection is also accessible via the ``doctrine.dbal.[name]_connection`` | |
service where ``[name]`` is the name of the connection. | ||
|
||
.. _DBAL documentation: http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html | ||
|
||
Shortened Configuration syntax | ||
------------------------------ | ||
|
||
When you are only using one entity manager, all config options available | ||
for each entity manager can be placed directly under ``doctrine.orm`` config | ||
level. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We only have one entity manager. So, I wouldn't talk about "each entity manager" but something like
|
||
|
||
.. code-block:: yaml | ||
|
||
doctrine: | ||
orm: | ||
# ... | ||
query_cache_driver: | ||
# ... | ||
metadata_cache_driver: | ||
# ... | ||
result_cache_driver: | ||
# ... | ||
connection: ~ | ||
class_metadata_factory_name: Doctrine\ORM\Mapping\ClassMetadataFactory | ||
default_repository_class: Doctrine\ORM\EntityRepository | ||
auto_mapping: false | ||
hydrators: | ||
# ... | ||
mappings: | ||
# ... | ||
dql: | ||
# ... | ||
filters: | ||
# ... | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think a configuration block providing all the different available formats would be better. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not so sure about showing other formats too:
Anyway I'll work on that a bit later and I'll propose your recommendation too. Thanks! |
||
|
||
This shortened version is commonly used in other documentation sections. | ||
Keep in mind that you can't use both syntaxes at the same time. | ||
|
||
.. _`DQL User Defined Functions`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/cookbook/dql-user-defined-functions.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Syntax
should use an uppercasedS