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

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

class CustomerFile extends ActiveRecord
{
Alexander Makarov committed
7 8 9
    /**
     * @inheritdoc
     */
10 11 12 13
    public static function collectionName()
    {
        return 'customer_fs';
    }
14

Alexander Makarov committed
15 16 17
    /**
     * @inheritdoc
     */
18 19 20 21 22 23 24 25 26 27
    public function attributes()
    {
        return array_merge(
            parent::attributes(),
            [
                'tag',
                'status',
            ]
        );
    }
28

Alexander Makarov committed
29 30 31 32 33
    /**
     * @inheritdoc
     * @return CustomerFileQuery
     */
    public static function find()
34
    {
35
        return new CustomerFileQuery(get_called_class());
36
    }
AlexGx committed
37
}