From 32d21879e9d9cbad758c8dc3326ef85116155471 Mon Sep 17 00:00:00 2001 From: guilhermeblanco Date: Sat, 5 Sep 2009 20:05:39 +0000 Subject: [PATCH] [2.0] Added some missing headers in some classes. Added API docs for Expr class --- lib/Doctrine/ORM/Query/Expr.php | 387 ++++++++++++++++++++- lib/Doctrine/ORM/Query/Expr/Andx.php | 13 +- lib/Doctrine/ORM/Query/Expr/Base.php | 13 +- lib/Doctrine/ORM/Query/Expr/Comparison.php | 12 +- lib/Doctrine/ORM/Query/Expr/From.php | 12 +- lib/Doctrine/ORM/Query/Expr/Func.php | 12 +- lib/Doctrine/ORM/Query/Expr/GroupBy.php | 13 +- lib/Doctrine/ORM/Query/Expr/Join.php | 12 +- lib/Doctrine/ORM/Query/Expr/Math.php | 12 +- lib/Doctrine/ORM/Query/Expr/OrderBy.php | 13 +- lib/Doctrine/ORM/Query/Expr/Orx.php | 13 +- lib/Doctrine/ORM/Query/Expr/Select.php | 13 +- lib/Doctrine/ORM/Tools/SchemaTool.php | 11 +- 13 files changed, 465 insertions(+), 71 deletions(-) diff --git a/lib/Doctrine/ORM/Query/Expr.php b/lib/Doctrine/ORM/Query/Expr.php index 08025e69a..69566c4d8 100644 --- a/lib/Doctrine/ORM/Query/Expr.php +++ b/lib/Doctrine/ORM/Query/Expr.php @@ -24,205 +24,566 @@ namespace Doctrine\ORM\Query; /** * This class is used to generate DQL expressions via a set of PHP static functions * - * @author Jonathan H. Wage - * @author Roman Borschel - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @link http://www.phpdoctrine.org - * @since 2.0 - * @version $Revision$ + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link www.doctrine-project.org + * @since 2.0 + * @version $Revision$ + * @author Guilherme Blanco + * @author Jonathan Wage + * @author Roman Borschel */ class Expr { + /** + * Creates an instance of Expr\Andx with given arguments. + * Each argument is separated by an "AND". Example: + * + * [php] + * // (u.type = ?1) AND (u.role = ?2) + * $q->where(Expr::andx('u.type = ?1', 'u.role = ?2')); + * + * @param mixed $x Optional clause. Defaults = null, but requires + * at least one defined when converting to string. + * @return Expr\Andx + */ public static function andx($x = null) { return new Expr\Andx(func_get_args()); } + /** + * Creates an instance of Expr\Orx with given arguments. + * Each argument is separated by an "OR". Example: + * + * [php] + * // (u.type = ?1) OR (u.role = ?2) + * $q->where(Expr::orx('u.type = ?1', 'u.role = ?2')); + * + * @param mixed $x Optional clause. Defaults = null, but requires + * at least one defined when converting to string. + * @return Expr\Orx + */ public static function orx($x = null) { return new Expr\Orx(func_get_args()); } + /** + * Creates an instance of Expr\Select with given arguments. + * Each argument is separated by a ",". Example: + * + * [php] + * // u.id, u.name, u.surname + * $q->select(Expr::select('u.id', 'u.name')->add('u.surname')); + * + * @param mixed $select Optional select. Defaults = null, but requires + * at least one defined when converting to string. + * @return Expr\Select + */ public static function select($select = null) { return new Expr\Select(func_get_args()); } + /** + * Creates an instance of Expr\From with given arguments. + * + * [php] + * // User u + * $q->from(Expr::from('User', 'u')); + * + * @param string $from Entity name. + * @param string $alias Optional alias to be used by Entity. + * @return Expr\From + */ public static function from($from, $alias = null) { return new Expr\From($from, $alias); } + /** + * Creates an instance of Expr\Join with given arguments. + * + * [php] + * // LEFT JOIN u.Group g WITH g.name = 'admin' + * Expr::leftJoin('u.Group', 'g', 'WITH', "g.name = 'admin'") + * + * @param string $join Relation join. + * @param string $alias Optional alias to be used by Relation. + * @param string $conditionType Optional type of condition appender. Accepts either string or constant. + * 'ON' and 'WITH' are supported strings. Expr\Join::ON and Expr\Join::WITH are supported constants. + * @param mixed $condition Optional condition to be appended. + * @return Expr\Join + */ public static function leftJoin($join, $alias = null, $conditionType = null, $condition = null) { return new Expr\Join(Expr\Join::LEFT_JOIN, $join, $alias, $conditionType, $condition); } + /** + * Creates an instance of Expr\Join with given arguments. + * + * [php] + * // INNER JOIN u.Group g WITH g.name = 'admin' + * Expr::innerJoin('u.Group', 'g', 'WITH', "g.name = 'admin'") + * + * @param string $join Relation join. + * @param string $alias Optional alias to be used by Relation. + * @param string $conditionType Optional type of condition appender. Accepts either string or constant. + * 'ON' and 'WITH' are supported strings. Expr\Join::ON and Expr\Join::WITH are supported constants. + * @param mixed $condition Optional condition to be appended. + * @return Expr\Join + */ public static function innerJoin($join, $alias = null, $conditionType = null, $condition = null) { return new Expr\Join(Expr\Join::INNER_JOIN, $join, $alias, $conditionType, $condition); } + /** + * Creates an instance of Expr\OrderBy with given item sort and order. + * Each argument is separated by a ",". Example: + * + * [php] + * $q->orderBy(Expr::orderBy('u.surname', 'ASC')->add('u.name', 'ASC')); + * + * @param string $sort Optional item sort. + * @param string $order Optional order to be applied in item. + * @return Expr\OrderBy + */ public static function orderBy($sort = null, $order = null) { return new Expr\OrderBy($sort, $order); } + /** + * Creates an instance of Expr\GroupBy with given arguments. + * Each argument is separated by a ",". Example: + * + * [php] + * // u.id, u.name + * $q->select(Expr::groupBy('u.id', 'u.name')); + * + * @param mixed $groupBy Optional group by. Defaults = null, but requires + * at least one defined when converting to string. + * @return Expr\Select + */ public static function groupBy($groupBy = null) { return new Expr\GroupBy(func_get_args()); } + /** + * Creates an instance of Expr\Comparison, with the given arguments. + * First argument is considered the left expression and the second is the right expression. + * When converted to string, it will generated a = . Example: + * + * [php] + * // u.id = ?1 + * $q->where(Expr::eq('u.id', '?1')); + * + * @param mixed $x Left expression + * @param mixed $y Right expression + * @return Expr\Comparison + */ public static function eq($x, $y) { return new Expr\Comparison($x, Expr\Comparison::EQ, $y); } + /** + * Creates an instance of Expr\Comparison, with the given arguments. + * First argument is considered the left expression and the second is the right expression. + * When converted to string, it will generated a <> . Example: + * + * [php] + * // u.id <> ?1 + * $q->where(Expr::neq('u.id', '?1')); + * + * @param mixed $x Left expression + * @param mixed $y Right expression + * @return Expr\Comparison + */ public static function neq($x, $y) { return new Expr\Comparison($x, Expr\Comparison::NEQ, $y); } + /** + * Creates an instance of Expr\Comparison, with the given arguments. + * First argument is considered the left expression and the second is the right expression. + * When converted to string, it will generated a < . Example: + * + * [php] + * // u.id < ?1 + * $q->where(Expr::lt('u.id', '?1')); + * + * @param mixed $x Left expression + * @param mixed $y Right expression + * @return Expr\Comparison + */ public static function lt($x, $y) { return new Expr\Comparison($x, Expr\Comparison::LT, $y); } + /** + * Creates an instance of Expr\Comparison, with the given arguments. + * First argument is considered the left expression and the second is the right expression. + * When converted to string, it will generated a <= . Example: + * + * [php] + * // u.id <= ?1 + * $q->where(Expr::lte('u.id', '?1')); + * + * @param mixed $x Left expression + * @param mixed $y Right expression + * @return Expr\Comparison + */ public static function lte($x, $y) { return new Expr\Comparison($x, Expr\Comparison::LTE, $y); } + /** + * Creates an instance of Expr\Comparison, with the given arguments. + * First argument is considered the left expression and the second is the right expression. + * When converted to string, it will generated a > . Example: + * + * [php] + * // u.id > ?1 + * $q->where(Expr::gt('u.id', '?1')); + * + * @param mixed $x Left expression + * @param mixed $y Right expression + * @return Expr\Comparison + */ public static function gt($x, $y) { return new Expr\Comparison($x, Expr\Comparison::GT, $y); } + /** + * Creates an instance of Expr\Comparison, with the given arguments. + * First argument is considered the left expression and the second is the right expression. + * When converted to string, it will generated a >= . Example: + * + * [php] + * // u.id >= ?1 + * $q->where(Expr::gte('u.id', '?1')); + * + * @param mixed $x Left expression + * @param mixed $y Right expression + * @return Expr\Comparison + */ public static function gte($x, $y) { return new Expr\Comparison($x, Expr\Comparison::GTE, $y); } + /** + * Creates an instance of AVG() function, with the given argument. + * + * @param mixed $x Argument to be used in AVG() function. + * @return Expr\Func + */ public static function avg($x) { return new Expr\Func('AVG', array($x)); } + /** + * Creates an instance of MAX() function, with the given argument. + * + * @param mixed $x Argument to be used in MAX() function. + * @return Expr\Func + */ public static function max($x) { return new Expr\Func('MAX', array($x)); } + /** + * Creates an instance of MIN() function, with the given argument. + * + * @param mixed $x Argument to be used in MIN() function. + * @return Expr\Func + */ public static function min($x) { return new Expr\Func('MIN', array($x)); } + /** + * Creates an instance of COUNT() function, with the given argument. + * + * @param mixed $x Argument to be used in COUNT() function. + * @return Expr\Func + */ public static function count($x) { return new Expr\Func('COUNT', array($x)); } + /** + * Creates an instance of COUNT(DISTINCT) function, with the given argument. + * + * @param mixed $x Argument to be used in COUNT(DISTINCT) function. + * @return string + */ public static function countDistinct($x) { return 'COUNT(DISTINCT ' . implode(', ', func_get_args()) . ')'; } + /** + * Creates an instance of EXISTS() function, with the given DQL Subquery. + * + * @param mixed $subquery DQL Subquery to be used in EXISTS() function. + * @return Expr\Func + */ public static function exists($subquery) { return new Expr\Func('EXISTS', array($subquery)); } + /** + * Creates an instance of ALL() function, with the given DQL Subquery. + * + * @param mixed $subquery DQL Subquery to be used in ALL() function. + * @return Expr\Func + */ public static function all($subquery) { return new Expr\Func('ALL', array($subquery)); } + /** + * Creates an instance of SOME() function, with the given DQL Subquery. + * + * @param mixed $subquery DQL Subquery to be used in SOME() function. + * @return Expr\Func + */ public static function some($subquery) { return new Expr\Func('SOME', array($subquery)); } + /** + * Creates an instance of ANY() function, with the given DQL subquery. + * + * @param mixed $subquery DQL Subquery to be used in ANY() function. + * @return Expr\Func + */ public static function any($subquery) { return new Expr\Func('ANY', array($subquery)); } + /** + * Creates an instance of NOT() function, with the given restriction. + * + * @param mixed $restriction Restriction to be used in NOT() function. + * @return Expr\Func + */ public static function not($restriction) { return new Expr\Func('NOT', array($restriction)); } + /** + * Creates an instance of ABS() function, with the given argument. + * + * @param mixed $x Argument to be used in ABS() function. + * @return Expr\Func + */ public static function abs($x) { return new Expr\Func('ABS', array($x)); } + /** + * Creates a product mathematical expression with the given arguments. + * First argument is considered the left expression and the second is the right expression. + * When converted to string, it will generated a * . Example: + * + * [php] + * // u.salary * u.percentAnualSalaryIncrease + * Expr::prod('u.salary', 'u.percentAnualSalaryIncrease') + * + * @param mixed $x Left expression + * @param mixed $y Right expression + * @return Expr\Math + */ public static function prod($x, $y) { return new Expr\Math($x, '*', $y); } + /** + * Creates a difference mathematical expression with the given arguments. + * First argument is considered the left expression and the second is the right expression. + * When converted to string, it will generated a - . Example: + * + * [php] + * // u.monthlySubscriptionCount - 1 + * Expr::diff('u.monthlySubscriptionCount', '1') + * + * @param mixed $x Left expression + * @param mixed $y Right expression + * @return Expr\Math + */ public static function diff($x, $y) { return new Expr\Math($x, '-', $y); } + /** + * Creates a sum mathematical expression with the given arguments. + * First argument is considered the left expression and the second is the right expression. + * When converted to string, it will generated a + . Example: + * + * [php] + * // u.numChildren + 1 + * Expr::diff('u.numChildren', '1') + * + * @param mixed $x Left expression + * @param mixed $y Right expression + * @return Expr\Math + */ public static function sum($x, $y) { return new Expr\Math($x, '+', $y); } + /** + * Creates a quotient mathematical expression with the given arguments. + * First argument is considered the left expression and the second is the right expression. + * When converted to string, it will generated a / . Example: + * + * [php] + * // u.total - u.period + * Expr::diff('u.total', 'u.period') + * + * @param mixed $x Left expression + * @param mixed $y Right expression + * @return Expr\Math + */ public static function quot($x, $y) { return new Expr\Math($x, '/', $y); } + /** + * Creates an instance of SQRT() function, with the given argument. + * + * @param mixed $x Argument to be used in SQRT() function. + * @return Expr\Func + */ public static function sqrt($x) { return new Expr\Func('SQRT', array($x)); } + /** + * Creates an instance of field IN() function, with the given arguments. + * + * @param string $x Field in string format to be restricted by IN() function + * @param mixed $y Argument to be used in IN() function. + * @return Expr\Func + */ public static function in($x, $y) { return new Expr\Func($x . ' IN', (array) $y); } + /** + * Creates an instance of field NOT IN() function, with the given arguments. + * + * @param string $x Field in string format to be restricted by NOT IN() function + * @param mixed $y Argument to be used in NOT IN() function. + * @return Expr\Func + */ public static function notIn($x, $y) { return new Expr\Func($x . ' NOT IN', (array) $y); } + /** + * Creates an instance of field LIKE() comparison, with the given arguments. + * + * @param string $x Field in string format to be inspected by LIKE() comparison. + * @param mixed $y Argument to be used in LIKE() comparison. + * @return Expr\Comparison + */ public static function like($x, $y) { return new Expr\Comparison($x, 'LIKE', $y); } + /** + * Creates an instance of CONCAT() function, with the given argument. + * + * @param mixed $x First argument to be used in CONCAT() function. + * @param mixed $x Second argument to be used in CONCAT() function. + * @return Expr\Func + */ public static function concat($x, $y) { return new Expr\Func('CONCAT', array($x, $y)); } + /** + * Creates an instance of SUBSTR() function, with the given argument. + * + * @param mixed $x Argument to be used as string to be cropped by SUBSTR() function. + * @param integer $from Initial offset to start cropping string. May accept negative values. + * @param integer $len Length of crop. May accept negative values. + * @return Expr\Func + */ public static function substr($x, $from, $len) { return new Expr\Func('SUBSTR', array($x, $from, $len)); } + /** + * Creates an instance of LOWER() function, with the given argument. + * + * @param mixed $x Argument to be used in LOWER() function. + * @return Expr\Func + */ public static function lower($x) { return new Expr\Func('LOWER', array($x)); } + /** + * Creates an instance of LOWER() function, with the given argument. + * + * @param mixed $x Argument to be used in LOWER() function. + * @return Expr\Func + */ public static function upper($x) { return new Expr\Func('UPPER', array($x)); } + /** + * Creates an instance of LENGTH() function, with the given argument. + * + * @param mixed $x Argument to be used as argument of LENGTH() function. + * @return Expr\Func + */ public static function length($x) { return new Expr\Func('LENGTH', array($x)); } + /** + * Creates a literal representation of the given argument. + * + * @param mixed $literal Argument to be converted to literal. + * @return string + */ public static function literal($literal) { if (is_numeric($literal)) { @@ -232,11 +593,25 @@ class Expr } } + /** + * Creates an instance of BETWEEN() function, with the given argument. + * + * @param mixed $val Valued to be inspected by range values. + * @param integer $x Starting range value to be used in BETWEEN() function. + * @param integer $y End point value to be used in BETWEEN() function. + * @return Expr\Func + */ public static function between($val, $x, $y) { return new Expr\Func('BETWEEN', array($val, $x, $y)); } + /** + * Creates an instance of TRIM() function, with the given argument. + * + * @param mixed $x Argument to be used as argument of TRIM() function. + * @return Expr\Func + */ public static function trim($x) { return new Expr\Func('TRIM', $x); diff --git a/lib/Doctrine/ORM/Query/Expr/Andx.php b/lib/Doctrine/ORM/Query/Expr/Andx.php index 7f8dda84b..9f7d8a580 100644 --- a/lib/Doctrine/ORM/Query/Expr/Andx.php +++ b/lib/Doctrine/ORM/Query/Expr/Andx.php @@ -24,12 +24,13 @@ namespace Doctrine\ORM\Query\Expr; /** * Expression class for building DQL and parts * - * @author Jonathan H. Wage - * @author Guilherme Blanco - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @link http://www.phpdoctrine.org - * @since 2.0 - * @version $Revision$ + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link www.doctrine-project.org + * @since 2.0 + * @version $Revision$ + * @author Guilherme Blanco + * @author Jonathan Wage + * @author Roman Borschel */ class Andx extends Base { diff --git a/lib/Doctrine/ORM/Query/Expr/Base.php b/lib/Doctrine/ORM/Query/Expr/Base.php index a651b5308..49d419890 100644 --- a/lib/Doctrine/ORM/Query/Expr/Base.php +++ b/lib/Doctrine/ORM/Query/Expr/Base.php @@ -24,12 +24,13 @@ namespace Doctrine\ORM\Query\Expr; /** * Abstract base Expr class for building DQL parts * - * @author Jonathan H. Wage - * @author Guilherme Blanco - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @link http://www.phpdoctrine.org - * @since 2.0 - * @version $Revision$ + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link www.doctrine-project.org + * @since 2.0 + * @version $Revision$ + * @author Guilherme Blanco + * @author Jonathan Wage + * @author Roman Borschel */ abstract class Base { diff --git a/lib/Doctrine/ORM/Query/Expr/Comparison.php b/lib/Doctrine/ORM/Query/Expr/Comparison.php index 2a9b599bf..7fcd263a2 100644 --- a/lib/Doctrine/ORM/Query/Expr/Comparison.php +++ b/lib/Doctrine/ORM/Query/Expr/Comparison.php @@ -24,11 +24,13 @@ namespace Doctrine\ORM\Query\Expr; /** * Expression class for DQL comparison expressions * - * @author Jonathan H. Wage - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @link http://www.phpdoctrine.org - * @since 2.0 - * @version $Revision$ + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link www.doctrine-project.org + * @since 2.0 + * @version $Revision$ + * @author Guilherme Blanco + * @author Jonathan Wage + * @author Roman Borschel */ class Comparison { diff --git a/lib/Doctrine/ORM/Query/Expr/From.php b/lib/Doctrine/ORM/Query/Expr/From.php index 02e6179d5..5f2620108 100644 --- a/lib/Doctrine/ORM/Query/Expr/From.php +++ b/lib/Doctrine/ORM/Query/Expr/From.php @@ -24,11 +24,13 @@ namespace Doctrine\ORM\Query\Expr; /** * Expression class for DQL from * - * @author Jonathan H. Wage - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @link http://www.phpdoctrine.org - * @since 2.0 - * @version $Revision$ + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link www.doctrine-project.org + * @since 2.0 + * @version $Revision$ + * @author Guilherme Blanco + * @author Jonathan Wage + * @author Roman Borschel */ class From { diff --git a/lib/Doctrine/ORM/Query/Expr/Func.php b/lib/Doctrine/ORM/Query/Expr/Func.php index 55f0a3497..21010badb 100644 --- a/lib/Doctrine/ORM/Query/Expr/Func.php +++ b/lib/Doctrine/ORM/Query/Expr/Func.php @@ -24,11 +24,13 @@ namespace Doctrine\ORM\Query\Expr; /** * Expression class for generating DQL functions * - * @author Jonathan H. Wage - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @link http://www.phpdoctrine.org - * @since 2.0 - * @version $Revision$ + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link www.doctrine-project.org + * @since 2.0 + * @version $Revision$ + * @author Guilherme Blanco + * @author Jonathan Wage + * @author Roman Borschel */ class Func { diff --git a/lib/Doctrine/ORM/Query/Expr/GroupBy.php b/lib/Doctrine/ORM/Query/Expr/GroupBy.php index 454dbd3f6..dc36ba3d6 100644 --- a/lib/Doctrine/ORM/Query/Expr/GroupBy.php +++ b/lib/Doctrine/ORM/Query/Expr/GroupBy.php @@ -24,12 +24,13 @@ namespace Doctrine\ORM\Query\Expr; /** * Expression class for building DQL Group By parts * - * @author Jonathan H. Wage - * @author Guilherme Blanco - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @link http://www.phpdoctrine.org - * @since 2.0 - * @version $Revision$ + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link www.doctrine-project.org + * @since 2.0 + * @version $Revision$ + * @author Guilherme Blanco + * @author Jonathan Wage + * @author Roman Borschel */ class GroupBy extends Base { diff --git a/lib/Doctrine/ORM/Query/Expr/Join.php b/lib/Doctrine/ORM/Query/Expr/Join.php index b15cde48f..a1a3955c6 100644 --- a/lib/Doctrine/ORM/Query/Expr/Join.php +++ b/lib/Doctrine/ORM/Query/Expr/Join.php @@ -24,11 +24,13 @@ namespace Doctrine\ORM\Query\Expr; /** * Expression class for DQL from * - * @author Jonathan H. Wage - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @link http://www.phpdoctrine.org - * @since 2.0 - * @version $Revision$ + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link www.doctrine-project.org + * @since 2.0 + * @version $Revision$ + * @author Guilherme Blanco + * @author Jonathan Wage + * @author Roman Borschel */ class Join { diff --git a/lib/Doctrine/ORM/Query/Expr/Math.php b/lib/Doctrine/ORM/Query/Expr/Math.php index ffceaf880..c6135c866 100644 --- a/lib/Doctrine/ORM/Query/Expr/Math.php +++ b/lib/Doctrine/ORM/Query/Expr/Math.php @@ -24,11 +24,13 @@ namespace Doctrine\ORM\Query\Expr; /** * Expression class for DQL math statements * - * @author Jonathan H. Wage - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @link http://www.phpdoctrine.org - * @since 2.0 - * @version $Revision$ + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link www.doctrine-project.org + * @since 2.0 + * @version $Revision$ + * @author Guilherme Blanco + * @author Jonathan Wage + * @author Roman Borschel */ class Math { diff --git a/lib/Doctrine/ORM/Query/Expr/OrderBy.php b/lib/Doctrine/ORM/Query/Expr/OrderBy.php index f3558de34..a24e286a2 100644 --- a/lib/Doctrine/ORM/Query/Expr/OrderBy.php +++ b/lib/Doctrine/ORM/Query/Expr/OrderBy.php @@ -24,12 +24,13 @@ namespace Doctrine\ORM\Query\Expr; /** * Expression class for building DQL Order By parts * - * @author Jonathan H. Wage - * @author Guilherme Blanco - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @link http://www.phpdoctrine.org - * @since 2.0 - * @version $Revision$ + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link www.doctrine-project.org + * @since 2.0 + * @version $Revision$ + * @author Guilherme Blanco + * @author Jonathan Wage + * @author Roman Borschel */ class OrderBy { diff --git a/lib/Doctrine/ORM/Query/Expr/Orx.php b/lib/Doctrine/ORM/Query/Expr/Orx.php index b1aad153c..fe695f40d 100644 --- a/lib/Doctrine/ORM/Query/Expr/Orx.php +++ b/lib/Doctrine/ORM/Query/Expr/Orx.php @@ -24,12 +24,13 @@ namespace Doctrine\ORM\Query\Expr; /** * Expression class for building DQL OR clauses * - * @author Jonathan H. Wage - * @author Guilherme Blanco - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @link http://www.phpdoctrine.org - * @since 2.0 - * @version $Revision$ + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link www.doctrine-project.org + * @since 2.0 + * @version $Revision$ + * @author Guilherme Blanco + * @author Jonathan Wage + * @author Roman Borschel */ class Orx extends Base { diff --git a/lib/Doctrine/ORM/Query/Expr/Select.php b/lib/Doctrine/ORM/Query/Expr/Select.php index 26144f209..fb049916f 100644 --- a/lib/Doctrine/ORM/Query/Expr/Select.php +++ b/lib/Doctrine/ORM/Query/Expr/Select.php @@ -24,12 +24,13 @@ namespace Doctrine\ORM\Query\Expr; /** * Expression class for building DQL select statements * - * @author Jonathan H. Wage - * @author Guilherme Blanco - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @link http://www.phpdoctrine.org - * @since 2.0 - * @version $Revision$ + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link www.doctrine-project.org + * @since 2.0 + * @version $Revision$ + * @author Guilherme Blanco + * @author Jonathan Wage + * @author Roman Borschel */ class Select extends Base { diff --git a/lib/Doctrine/ORM/Tools/SchemaTool.php b/lib/Doctrine/ORM/Tools/SchemaTool.php index f7582b850..d9197f502 100644 --- a/lib/Doctrine/ORM/Tools/SchemaTool.php +++ b/lib/Doctrine/ORM/Tools/SchemaTool.php @@ -29,10 +29,13 @@ use Doctrine\DBAL\Types\Type, * The SchemaTool is a tool to create/drop/update database schemas based on * ClassMetadata class descriptors. * - * @author Roman Borschel - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @link www.doctrine-project.org - * @since 2.0 + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link www.doctrine-project.org + * @since 2.0 + * @version $Revision$ + * @author Guilherme Blanco + * @author Jonathan Wage + * @author Roman Borschel */ class SchemaTool {