Entity\MessageAttachment:
  type: entity
  table: message_attachment
  repositoryClass: Entity\Repository\MessageAttachmentRepository
  fields:
    id:
      id: true
      type: integer
      unsigned: false
      nullable: false
      generator:
        strategy: IDENTITY
    path:
      type: string
      length: 255
      fixed: false
      nullable: false
    comment:
      type: text
      nullable: true
    size:
      type: integer
      unsigned: false
      nullable: false
    message_id:
      type: integer
      unsigned: false
      nullable: false
    filename:
      type: string
      length: 255
      fixed: false
      nullable: false
  lifecycleCallbacks:
    prePersist:
      - before_save
