Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 12 |
| OrganizationQuery | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
12.00 | |
0.00% |
0 / 12 |
| active | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 6 |
|||
| all | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 3 |
|||
| one | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 3 |
|||
| <?php | |
| namespace common\models; | |
| /** | |
| * This is the ActiveQuery class for [[Organization]]. | |
| * | |
| * @see Organization | |
| */ | |
| class OrganizationQuery extends \yii\db\ActiveQuery | |
| { | |
| public function active() | |
| { | |
| return $this->joinWith([ | |
| 'participants' => function (ParticipantQuery $query) { | |
| $query->active(); | |
| } | |
| ]); | |
| } | |
| /** | |
| * {@inheritdoc} | |
| * @return Organization[]|array | |
| */ | |
| public function all($db = null) | |
| { | |
| return parent::all($db); | |
| } | |
| /** | |
| * {@inheritdoc} | |
| * @return Organization|array|null | |
| */ | |
| public function one($db = null) | |
| { | |
| return parent::one($db); | |
| } | |
| } |