mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00

committed by
Carsten Brandt

parent
6e6353e2cd
commit
ee85dba92e
@ -330,7 +330,7 @@ class ActiveQuery extends Query implements ActiveQueryInterface
|
||||
* This method differs from [[with()]] in that it will build up and execute a JOIN SQL statement
|
||||
* for the primary table. And when `$eagerLoading` is true, it will call [[with()]] in addition with the specified relations.
|
||||
*
|
||||
* @param array $with the relations to be joined. Each array element represents a single relation.
|
||||
* @param string|array $with the relations to be joined. Each array element represents a single relation.
|
||||
* The array keys are relation names, and the array values are the corresponding anonymous functions that
|
||||
* can be used to modify the relation queries on-the-fly. If a relation query does not need modification,
|
||||
* you may use the relation name as the array value. Sub-relations can also be specified (see [[with()]]).
|
||||
|
Reference in New Issue
Block a user