Ojs\JournalBundle\Entity\ArticleAuthor:
    type: entity
    table: article_author
    repositoryClass: Ojs\JournalBundle\Entity\ArticleAuthorRepository
    id:
        id:
            type: integer
            id: true
            generator:
                strategy: AUTO
    fields:
        authorOrder:
            type: integer
            column: author_order
            nullable: true
            gedmo:
                - versioned
        correspondenceAuthor:
            type: boolean
            column: correspondence_author
            nullable: true
            options:
                default: false
        createdBy:
           type: string
           gedmo:
             blameable:
               on: create
        updatedBy:
           type: string
           gedmo:
             blameable:
               on: update
        deletedAt:
            type: date
            nullable: true
    manyToOne:
        author:
            targetEntity: Author
            inversedBy: articleAuthors
            joinColumn:
                name: author_id
                referencedColumnName: id
            cascade: ["persist"]
        article:
            targetEntity: Article
            inversedBy: articleAuthors
            joinColumn:
                name: article_id
                referencedColumnName: id
            cascade: ["persist"]
    lifecycleCallbacks: {  }
    gedmo:
        loggable: true
        soft_deleteable:
          field_name: deletedAt
          time_aware: false

Ojs\JournalBundle\Entity\ArticleAuthor:
    type: entity
    table: article_author
    repositoryClass: Ojs\JournalBundle\Entity\ArticleAuthorRepository
    id:
        id:
            type: integer
            id: true
            generator:
                strategy: AUTO
    fields:
        authorOrder:
            type: integer
            column: author_order
            nullable: true
            gedmo:
                - versioned
        correspondenceAuthor:
            type: boolean
            column: correspondence_author
            options:
                default: false
        createdBy:
           type: string
           gedmo:
             blameable:
               on: create
        updatedBy:
           type: string
           gedmo:
             blameable:
               on: update
        deletedAt:
            type: date
            nullable: true
    manyToOne:
        author:
            targetEntity: Author
            inversedBy: articleAuthors
            joinColumn:
                name: author_id
                referencedColumnName: id
            cascade: ["persist"]
        article:
            targetEntity: Article
            inversedBy: articleAuthors
            joinColumn:
                name: article_id
                referencedColumnName: id
            cascade: ["persist"]
    lifecycleCallbacks: {  }
    gedmo:
        loggable: true
        soft_deleteable:
          field_name: deletedAt
          time_aware: false

Revert "Make correspondenceAuthor field nullable"
Revert "Make correspondenceAuthor field nullable"

This reverts commit 2e516e53bc77ec311e62aeed5219b3c5640e7a12.
