mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-05 04:27:46 +08:00
28 lines
486 B
PHP
28 lines
486 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 createQuery()
|
|
{
|
|
return new CustomerFileQuery(get_called_class());
|
|
}
|
|
}
|