commit
18fd892c85
@ -278,7 +278,7 @@ With Nested Conditions in WHERE Clause:
|
|||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$query = $em->createQuery('SELECT u from ForumUser u WHERE (u.username = :name OR u.username = :name2) AND u.id = :id');
|
$query = $em->createQuery('SELECT u FROM ForumUser u WHERE (u.username = :name OR u.username = :name2) AND u.id = :id');
|
||||||
$query->setParameters(array(
|
$query->setParameters(array(
|
||||||
'name' => 'Bob',
|
'name' => 'Bob',
|
||||||
'name2' => 'Alice',
|
'name2' => 'Alice',
|
||||||
|
Loading…
Reference in New Issue
Block a user