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

3
namespace yiiunit\data\ar\mongodb\file;
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

class CustomerFile extends ActiveRecord
{
	public static function collectionName()
	{
		return 'customer_fs';
	}

	public function attributes()
	{
		return array_merge(
			parent::attributes(),
			[
				'tag',
				'status',
			]
		);
	}

23
	public static function createQuery()
24
	{
25
		return new CustomerFileQuery(['modelClass' => get_called_class()]);
26 27
	}
}