Skip to content

Commit 0779c00

Browse files
committed
Fix doc errors
1 parent 2aff707 commit 0779c00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ $query1->select(Projections::properties('myColumn', 'anotherColumn'));
519519
```
520520

521521
**Attention:** A call to `setSelect()` or `setProjection()` (deprecated alternative) will NOT remove
522-
the result class definition in the query object as done before. This will breaks compatibility with previous versions.
522+
the result class definition in the query object as done before. This breaks compatibility with previous versions.
523523
So you need to call `setResultClass(NULL)` to have `stdClass` returned.
524524

525525
## Getting the result
@@ -547,11 +547,11 @@ Basic projections - the aggregation of columns of different rows - are available
547547

548548
```
549549
$proj = Projections::rowCount();
550-
$query->setlect($proj);
550+
$query->select($proj);
551551
```
552552

553553
You will find projections for: count, distinct, sum, avg, min, max. Please notice that
554-
the returned model class is not reset. You need to call `setResultClass(NULL) to have
554+
the returned model class is not reset. You need to call `setResultClass(NULL)` to have
555555
`stdClass` returned when using projections.
556556

557557
## Subqueries and JOINs

0 commit comments

Comments
 (0)