Browse Source

doc fix.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
4f346f4be1
  1. 5
      framework/yii/db/QueryTrait.php

5
framework/yii/db/QueryTrait.php

@ -136,6 +136,9 @@ trait QueryTrait
* (e.g. `['id' => SORT_ASC, 'name' => SORT_DESC]`).
* The method will automatically quote the column names unless a column contains some parenthesis
* (which means the column contains a DB expression).
* Note that if your order-by is an expression containing commas, you should always use an array
* to represent the order-by information. Otherwise, the method will not be able to correctly determine
* the order-by columns.
* @return static the query object itself
* @see addOrderBy()
*/
@ -205,4 +208,4 @@ trait QueryTrait
$this->offset = $offset;
return $this;
}
}
}

Loading…
Cancel
Save