<commit_before>Ojs\JournalBundle\Entity\JournalUser:
    type: entity
    table: journal_user
    repositoryClass: Ojs\JournalBundle\Entity\JournalUserRepository

    manyToOne:
        journal:
            targetEntity: Ojs\JournalBundle\Entity\Journal
            inversedBy: journalUsers
            joinColumn:
                name: journal_id
                referencedColumnName: id
        user:
            targetEntity: Ojs\UserBundle\Entity\User
            inversedBy: journalUsers
            joinColumn:
                name: user_id
                referencedColumnName: id

    manyToMany:
        roles:
            targetEntity: Ojs\UserBundle\Entity\Role
            joinTable:
                name: journal_user_role
                joinColumns:
                    journal_user_id:
                        referencedColumnName: id
                inverseJoinColumns:
                    role_id:
                        referencedColumnName: id

    id:
        id:
            type: integer
            id: true
            generator:
                strategy: AUTO

    uniqueConstraints:
        journal_user_idx:
            columns: journal_id, user_id

    lifecycleCallbacks: {  }<commit_msg>Enable "cascade all" for JournalUser's roles and user fields<commit_after>Ojs\JournalBundle\Entity\JournalUser:
    type: entity
    table: journal_user
    repositoryClass: Ojs\JournalBundle\Entity\JournalUserRepository

    manyToOne:
        journal:
            targetEntity: Ojs\JournalBundle\Entity\Journal
            inversedBy: journalUsers
            joinColumn:
                name: journal_id
                referencedColumnName: id
        user:
            targetEntity: Ojs\UserBundle\Entity\User
            inversedBy: journalUsers
            cascade: ["ALL"]
            joinColumn:
                name: user_id
                referencedColumnName: id

    manyToMany:
        roles:
            targetEntity: Ojs\UserBundle\Entity\Role
            cascade: ["ALL"]
            joinTable:
                name: journal_user_role
                joinColumns:
                    journal_user_id:
                        referencedColumnName: id
                inverseJoinColumns:
                    role_id:
                        referencedColumnName: id

    id:
        id:
            type: integer
            id: true
            generator:
                strategy: AUTO

    uniqueConstraints:
        journal_user_idx:
            columns: journal_id, user_id

    lifecycleCallbacks: {  }
{'fraction_non_alphanumeric': 0.05151395988989382, 'fraction_numerical': 0.0, 'mean_word_length': 1.3977379830348728, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3403215', 'n_tokens_mistral': 643, 'n_tokens_neox': 604, 'n_words': 128}