Entity\UserCourseCategory:
  type: entity
  table: user_course_category
  repositoryClass: Entity\Repository\UserCourseCategoryRepository
  fields:
    id:
      id: true
      type: integer
      unsigned: false
      nullable: false
      generator:
        strategy: IDENTITY
    user_id:
      type: integer
      unsigned: false
      nullable: false
    title:
      type: text
      nullable: false
    sort:
      type: integer
      unsigned: false
      nullable: true
  lifecycleCallbacks:
    prePersist:
      - before_save
