FAQ and Composite Key renaming
This commit is contained in:
parent
c876f9edb2
commit
660ead4b0e
@ -172,15 +172,15 @@ What is DQL?
|
|||||||
DQL stands for Doctrine Query Language, a query language that very much looks like SQL
|
DQL stands for Doctrine Query Language, a query language that very much looks like SQL
|
||||||
but has some important benefits when using Doctrine:
|
but has some important benefits when using Doctrine:
|
||||||
|
|
||||||
* It uses class names and fields instead of tables and columns, separating concerns between backend and your object model.
|
- It uses class names and fields instead of tables and columns, separating concerns between backend and your object model.
|
||||||
* It utilizes the metadata defined to offer a range of shortcuts when writing. For example you do not have to specify the ON clause of joins, since Doctrine already knows about them.
|
- It utilizes the metadata defined to offer a range of shortcuts when writing. For example you do not have to specify the ON clause of joins, since Doctrine already knows about them.
|
||||||
* It adds some functionality that is related to object management and transforms them into SQL.
|
- It adds some functionality that is related to object management and transforms them into SQL.
|
||||||
|
|
||||||
It also has some drawbacks of course:
|
It also has some drawbacks of course:
|
||||||
|
|
||||||
* The syntax is slightly different to SQL so you have to learn and remember the differences.
|
- The syntax is slightly different to SQL so you have to learn and remember the differences.
|
||||||
* To be vendor independent it can only implement a subset of all the existing SQL dialects. Vendor specific functionality and optimizations cannot be used through DQL unless implemented by you explicitly.
|
- To be vendor independent it can only implement a subset of all the existing SQL dialects. Vendor specific functionality and optimizations cannot be used through DQL unless implemented by you explicitly.
|
||||||
* For some DQL constructs subselects are used which are known to be slow in MySQL.
|
- For some DQL constructs subselects are used which are known to be slow in MySQL.
|
||||||
|
|
||||||
Can I sort by a function (for example ORDER BY RAND()) in DQL?
|
Can I sort by a function (for example ORDER BY RAND()) in DQL?
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Composite Primary Keys
|
Composite and Foreign Keys as Primary Key
|
||||||
======================
|
=========================================
|
||||||
|
|
||||||
Doctrine 2 supports composite primary keys natively. Composite keys are a very powerful relational database concept
|
Doctrine 2 supports composite primary keys natively. Composite keys are a very powerful relational database concept
|
||||||
and we took good care to make sure Doctrine 2 supports as many of the composite primary key use-cases.
|
and we took good care to make sure Doctrine 2 supports as many of the composite primary key use-cases.
|
||||||
|
Loading…
Reference in New Issue
Block a user