CustomerFile.php 540 Bytes
Newer Older
1 2
<?php

3
namespace yiiunit\data\ar\mongodb\file;
4 5 6

class CustomerFile extends ActiveRecord
{
7 8 9 10
    public static function collectionName()
    {
        return 'customer_fs';
    }
11

12 13 14 15 16 17 18 19 20 21
    public function attributes()
    {
        return array_merge(
            parent::attributes(),
            [
                'tag',
                'status',
            ]
        );
    }
22

23 24 25 26 27 28
    public static function createQuery($config = [])
    {
        $config['modelClass'] = get_called_class();

        return new CustomerFileQuery($config);
    }
AlexGx committed
29
}