mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-05 06:54:39 +01:00
Global DOCS update: ~~~ replaced with ```
This commit is contained in:
@@ -35,14 +35,14 @@ interface ActiveQueryInterface extends QueryInterface
|
||||
* This can also be a callable (e.g. anonymous function) that returns the index value based on the given
|
||||
* row or model data. The signature of the callable should be:
|
||||
*
|
||||
* ~~~
|
||||
* ```php
|
||||
* // $model is an AR instance when `asArray` is false,
|
||||
* // or an array of column values when `asArray` is true.
|
||||
* function ($model)
|
||||
* {
|
||||
* // return the index value corresponding to $model
|
||||
* }
|
||||
* ~~~
|
||||
* ```
|
||||
*
|
||||
* @return $this the query object itself
|
||||
*/
|
||||
@@ -61,7 +61,7 @@ interface ActiveQueryInterface extends QueryInterface
|
||||
*
|
||||
* The following are some usage examples:
|
||||
*
|
||||
* ~~~
|
||||
* ```php
|
||||
* // find customers together with their orders and country
|
||||
* Customer::find()->with('orders', 'country')->all();
|
||||
* // find customers together with their orders and the orders' shipping address
|
||||
@@ -73,7 +73,7 @@ interface ActiveQueryInterface extends QueryInterface
|
||||
* },
|
||||
* 'country',
|
||||
* ])->all();
|
||||
* ~~~
|
||||
* ```
|
||||
*
|
||||
* @return $this the query object itself
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user