Entity\UsergroupRelUser:
  type: entity
  table: usergroup_rel_user
  repositoryClass: Entity\Repository\UsergroupRelUserRepository
  fields:
    id:
      id: true
      type: integer
      unsigned: false
      nullable: false
      generator:
        strategy: IDENTITY
    usergroup_id:
      type: integer
      unsigned: false
      nullable: false
    user_id:
      type: integer
      unsigned: false
      nullable: false
  lifecycleCallbacks:
    prePersist:
      - before_save
