mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-23 07:27:13 +01:00
27 lines
373 B
PHP
27 lines
373 B
PHP
<?php
|
|
|
|
namespace yiiunit\data\ar\mongodb\file;
|
|
|
|
class CustomerFile extends ActiveRecord
|
|
{
|
|
public static function collectionName()
|
|
{
|
|
return 'customer_fs';
|
|
}
|
|
|
|
public function attributes()
|
|
{
|
|
return array_merge(
|
|
parent::attributes(),
|
|
[
|
|
'tag',
|
|
'status',
|
|
]
|
|
);
|
|
}
|
|
|
|
public static function activeOnly($query)
|
|
{
|
|
$query->andWhere(['status' => 2]);
|
|
}
|
|
} |