1
0
mirror of synced 2025-01-31 20:41:44 +03:00

Single quotes can't nest

I decided to use "... '...' ...", but perhaps you prefer '... \'...\' ...'?
This commit is contained in:
Per Persson 2014-04-15 13:56:18 +02:00
parent 2da74e5147
commit 38911076ad

View File

@ -434,7 +434,7 @@ Starting with 2.4, the IDENTITY() DQL function also works for composite primary
.. code-block:: php
<?php
$query = $em->createQuery('SELECT IDENTITY(c.location, 'latitude') AS latitude, IDENTITY(c.location, 'longitude') AS longitude FROM Checkpoint c WHERE c.user = ?1');
$query = $em->createQuery("SELECT IDENTITY(c.location, 'latitude') AS latitude, IDENTITY(c.location, 'longitude') AS longitude FROM Checkpoint c WHERE c.user = ?1");
Joins between entities without associations were not possible until version
2.4, where you can generate an arbitrary join with the following syntax: