Entity\ReservationItem:
  type: entity
  table: reservation_item
  repositoryClass: Entity\Repository\ReservationItemRepository
  fields:
    id:
      id: true
      type: integer
      unsigned: false
      nullable: false
      generator:
        strategy: IDENTITY
    category_id:
      type: integer
      unsigned: false
      nullable: false
    course_code:
      type: string
      length: 40
      fixed: false
      nullable: false
    name:
      type: string
      length: 128
      fixed: false
      nullable: false
    description:
      type: text
      nullable: false
    blackout:
      type: boolean
      nullable: false
    creator:
      type: integer
      unsigned: false
      nullable: false
    always_available:
      type: boolean
      nullable: false
  lifecycleCallbacks:
    prePersist:
      - before_save
