Entity.ReservationSubscription.dcm.yml 683 B

1234567891011121314151617181920212223242526272829303132
  1. Entity\ReservationSubscription:
  2. type: entity
  3. table: reservation_subscription
  4. repositoryClass: Entity\Repository\ReservationSubscriptionRepository
  5. fields:
  6. dummy:
  7. id: true
  8. type: integer
  9. unsigned: false
  10. nullable: false
  11. generator:
  12. strategy: IDENTITY
  13. user_id:
  14. type: integer
  15. unsigned: false
  16. nullable: false
  17. reservation_id:
  18. type: integer
  19. unsigned: false
  20. nullable: false
  21. accepted:
  22. type: boolean
  23. nullable: false
  24. start_at:
  25. type: datetime
  26. nullable: false
  27. end_at:
  28. type: datetime
  29. nullable: false
  30. lifecycleCallbacks:
  31. prePersist:
  32. - before_save