mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Global DOCS update: ~~~ replaced with ```
This commit is contained in:
@ -55,7 +55,7 @@ trait ActiveQueryTrait
|
||||
*
|
||||
* 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
|
||||
@ -67,15 +67,15 @@ trait ActiveQueryTrait
|
||||
* },
|
||||
* 'country',
|
||||
* ])->all();
|
||||
* ~~~
|
||||
* ```
|
||||
*
|
||||
* You can call `with()` multiple times. Each call will add relations to the existing ones.
|
||||
* For example, the following two statements are equivalent:
|
||||
*
|
||||
* ~~~
|
||||
* ```php
|
||||
* Customer::find()->with('orders', 'country')->all();
|
||||
* Customer::find()->with('orders')->with('country')->all();
|
||||
* ~~~
|
||||
* ```
|
||||
*
|
||||
* @return $this the query object itself
|
||||
*/
|
||||
|
Reference in New Issue
Block a user