CustomerFile.php 634 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace yiiunit\extensions\mongodb\data\ar\file;
  3. class CustomerFile extends ActiveRecord
  4. {
  5. /**
  6. * {@inheritdoc}
  7. */
  8. public static function collectionName()
  9. {
  10. return 'customer_fs';
  11. }
  12. /**
  13. * {@inheritdoc}
  14. */
  15. public function attributes()
  16. {
  17. return array_merge(
  18. parent::attributes(),
  19. [
  20. 'tag',
  21. 'status',
  22. ]
  23. );
  24. }
  25. /**
  26. * {@inheritdoc}
  27. * @return CustomerFileQuery
  28. */
  29. public static function find()
  30. {
  31. return new CustomerFileQuery(get_called_class());
  32. }
  33. }