1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Update lib/Doctrine/ORM/Query/Expr.php

This commit is contained in:
armetiz 2011-10-21 11:55:54 +03:00
parent ca01065c6a
commit 4a50eb4fa7

View File

@ -40,10 +40,12 @@ class Expr
*
* [php]
* // (u.type = ?1) AND (u.role = ?2)
* $expr->andX('u.type = ?1', 'u.role = ?2'));
* $expr->andX($expr->eq('u.type', ':1'), $expr->eq('u.role', ':2'));
*
* @param mixed $x Optional clause. Defaults = null, but requires
* at least one defined when converting to string.
* @param Doctrine\ORM\Query\Expr\Comparison |
* Doctrine\ORM\Query\Expr\Func |
* Doctrine\ORM\Query\Expr\Orx
* $x Optional clause. Defaults = null, but requires at least one defined when converting to string.
* @return Expr\Andx
*/
public function andX($x = null)