@@ -197,7 +197,7 @@ public function sql(ValueBinder $generator = null) {
197
197
* The callback will receive 2 parameters, the first one is the value of the query
198
198
* part that is being iterated and the second the name of such part.
199
199
*
200
- * ## Example:
200
+ * ### Example:
201
201
* {{{
202
202
* $query->select(['title'])->from('articles')->traverse(function ($value, $clause) {
203
203
* if ($clause === 'select') {
@@ -230,7 +230,7 @@ public function traverse(callable $visitor, array $parts = []) {
230
230
* By default this function will append any passed argument to the list of fields
231
231
* to be selected, unless the second argument is set to true.
232
232
*
233
- * ## Examples:
233
+ * ### Examples:
234
234
*
235
235
* {{{
236
236
* $query->select(['id', 'title']); // Produces SELECT id, title
@@ -275,7 +275,7 @@ public function select($fields = [], $overwrite = false) {
275
275
* or set of fields, you may pass an array of fields to filter on. Beware that
276
276
* this option might not be fully supported in all database systems.
277
277
*
278
- * ## Examples:
278
+ * ### Examples:
279
279
*
280
280
* {{{
281
281
* // Filters products with the same name and city
@@ -355,7 +355,7 @@ public function modifier($modifiers, $overwrite = false) {
355
355
*
356
356
* This method can be used for select, update and delete statements.
357
357
*
358
- * ## Examples:
358
+ * ### Examples:
359
359
*
360
360
* {{{
361
361
* $query->from(['p' => 'posts']); // Produces FROM posts p
@@ -433,7 +433,7 @@ public function from($tables = [], $overwrite = false) {
433
433
* // INNER JOIN products p (a.owner_id = p.id)
434
434
* }}}
435
435
*
436
- * ## Using conditions and types
436
+ * ### Using conditions and types
437
437
*
438
438
* Conditions can be expressed, as in the examples above, using a string for comparing
439
439
* columns, or string with already quoted literal values. Additionally it is
@@ -454,7 +454,7 @@ public function from($tables = [], $overwrite = false) {
454
454
* ]], ['a.posted' => 'datetime', 'a.published' => 'boolean'])
455
455
* }}}
456
456
*
457
- * ## Overwriting joins
457
+ * ### Overwriting joins
458
458
*
459
459
* When creating aliased joins using the array notation, you can override
460
460
* previous join definitions by using the same alias in consequent
@@ -632,7 +632,7 @@ protected function _makeJoin($table, $conditions, $type) {
632
632
* Any conditions created with this methods can be used with any SELECT, UPDATE
633
633
* and DELETE type of queries.
634
634
*
635
- * ## Conditions using operators:
635
+ * ### Conditions using operators:
636
636
*
637
637
* {{{
638
638
* $query->where([
@@ -649,7 +649,7 @@ protected function _makeJoin($table, $conditions, $type) {
649
649
* Second parameter is used to specify what type is expected for each passed
650
650
* key. Valid types can be used from the mapped with Database\Type class.
651
651
*
652
- * ## Nesting conditions with conjunctions:
652
+ * ### Nesting conditions with conjunctions:
653
653
*
654
654
* {{{
655
655
* $query->where([
@@ -674,7 +674,7 @@ protected function _makeJoin($table, $conditions, $type) {
674
674
* the AND operator. Also, using the same array key twice in consecutive calls to
675
675
* this method will not override the previous value.
676
676
*
677
- * ## Using expressions objects:
677
+ * ### Using expressions objects:
678
678
*
679
679
* {{{
680
680
* $exp = $query->newExpr()->add(['id !=' => 100, 'author_id' != 1])->type('OR');
@@ -687,7 +687,7 @@ protected function _makeJoin($table, $conditions, $type) {
687
687
*
688
688
* Other Query objects that be used as conditions for any field.
689
689
*
690
- * ## Adding conditions in multiple steps:
690
+ * ### Adding conditions in multiple steps:
691
691
*
692
692
* You can use callable functions to construct complex expressions, functions
693
693
* receive as first argument a new QueryExpression object and this query instance
@@ -708,7 +708,7 @@ protected function _makeJoin($table, $conditions, $type) {
708
708
*
709
709
* ``WHERE title != 'Hello World' AND (id = 1 OR (id > 2 AND id < 10))``
710
710
*
711
- * ## Conditions as strings:
711
+ * ### Conditions as strings:
712
712
*
713
713
* {{{
714
714
* $query->where(['articles.author_id = authors.id', 'modified IS NULL']);
@@ -755,7 +755,7 @@ public function where($conditions = null, $types = [], $overwrite = false) {
755
755
* that each array entry will be joined to the other using the AND operator, unless
756
756
* you nest the conditions in the array using other operator.
757
757
*
758
- * ## Examples:
758
+ * ### Examples:
759
759
*
760
760
* {{{
761
761
* $query->where(['title' => 'Hello World')->andWhere(['author_id' => 1]);
@@ -816,7 +816,7 @@ public function andWhere($conditions, $types = []) {
816
816
* that each array entry will be joined to the other using the OR operator, unless
817
817
* you nest the conditions in the array using other operator.
818
818
*
819
- * ## Examples:
819
+ * ### Examples:
820
820
*
821
821
* {{{
822
822
* $query->where(['title' => 'Hello World')->orWhere(['title' => 'Foo']);
@@ -874,7 +874,7 @@ public function orWhere($conditions, $types = []) {
874
874
* By default this function will append any passed argument to the list of fields
875
875
* to be selected, unless the second argument is set to true.
876
876
*
877
- * ## Examples:
877
+ * ### Examples:
878
878
*
879
879
* {{{
880
880
* $query->order(['title' => 'DESC', 'author_id' => 'ASC']);
@@ -929,7 +929,7 @@ public function order($fields, $overwrite = false) {
929
929
* By default this function will append any passed argument to the list of fields
930
930
* to be grouped, unless the second argument is set to true.
931
931
*
932
- * ## Examples:
932
+ * ### Examples:
933
933
*
934
934
* {{{
935
935
* // Produces GROUP BY id, title
@@ -1046,7 +1046,7 @@ public function page($num, $limit = null) {
1046
1046
* In some databases, this operation might not be supported or will require
1047
1047
* the query to be transformed in order to limit the result set size.
1048
1048
*
1049
- * ## Examples
1049
+ * ### Examples
1050
1050
*
1051
1051
* {{{
1052
1052
* $query->limit(10) // generates LIMIT 10
@@ -1073,7 +1073,7 @@ public function limit($num) {
1073
1073
* In some databases, this operation might not be supported or will require
1074
1074
* the query to be transformed in order to limit the result set size.
1075
1075
*
1076
- * ## Examples
1076
+ * ### Examples
1077
1077
*
1078
1078
* {{{
1079
1079
* $query->offset(10) // generates OFFSET 10
@@ -1100,7 +1100,7 @@ public function offset($num) {
1100
1100
* By default, the UNION operator will remove duplicate rows, if you wish to include
1101
1101
* every row for all queries, use unionAll().
1102
1102
*
1103
- * ## Examples
1103
+ * ### Examples
1104
1104
*
1105
1105
* {{{
1106
1106
* $union = (new Query($conn))->select(['id', 'title'])->from(['a' => 'articles']);
@@ -1439,7 +1439,7 @@ public function clause($name) {
1439
1439
* If you wish to remove all decorators from the stack, set the first parameter
1440
1440
* to null and the second to true.
1441
1441
*
1442
- * ## Example
1442
+ * ### Example
1443
1443
*
1444
1444
* {{{
1445
1445
* $query->decorateResults(function ($row) {
0 commit comments