@@ -76,12 +76,13 @@ There are two ActiveRecord methods for querying data from database:
...
@@ -76,12 +76,13 @@ There are two ActiveRecord methods for querying data from database:
-[[yii\db\ActiveRecord::find()]]
-[[yii\db\ActiveRecord::find()]]
-[[yii\db\ActiveRecord::findBySql()]]
-[[yii\db\ActiveRecord::findBySql()]]
Both methods return an [[yii\db\ActiveQuery]] instance, which extends [[yii\db\Query]], and thus supports the same set of flexible and powerful DB query methods. The following examples demonstrate some of the possibilities.
Both methods return an [[yii\db\ActiveQuery]] instance, which extends [[yii\db\Query]], and thus supports the same set
of flexible and powerful DB query methods. The following examples demonstrate some of the possibilities.
```php
```php
// to retrieve all *active* customers and order them by their ID:
// to retrieve all *active* customers and order them by their ID: