You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
234 B
19 lines
234 B
11 years ago
|
<?php
|
||
11 years ago
|
|
||
11 years ago
|
namespace yiiunit\data\ar;
|
||
11 years ago
|
|
||
11 years ago
|
use yii\db\ActiveQuery;
|
||
|
|
||
|
/**
|
||
|
* CustomerQuery
|
||
|
*/
|
||
|
class CustomerQuery extends ActiveQuery
|
||
|
{
|
||
11 years ago
|
public function active()
|
||
|
{
|
||
10 years ago
|
$this->andWhere('[[status]]=1');
|
||
11 years ago
|
|
||
|
return $this;
|
||
|
}
|
||
11 years ago
|
}
|