CinemaPerformers.php 465 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\model;
  3. use DateTimeInterface;
  4. use support\Model;
  5. class CinemaPerformers extends Model
  6. {
  7. protected $table = 'cinema_performers';
  8. protected $primaryKey = 'performers_id';
  9. protected $dateFormat = 'U';
  10. public const CREATED_AT = 'performers_create_time';
  11. public const UPDATED_AT = 'performers_update_time';
  12. public function serializeDate(DateTimeInterface $date)
  13. {
  14. return $date->format('Y-m-d H:i:s');
  15. }
  16. }