Novosga\Entity\ServicoUsuario:
    type: entity
    table: servicos_usuarios
    repositoryClass: App\Repository\ORM\ServicoUsuarioRepository
    id:
        servico:
            associationKey: true
        unidade:
            associationKey: true
        usuario:
            associationKey: true
    fields:
        peso:
            type: smallint
            nullable: false
    manyToOne:
        servico:
            targetEntity: Novosga\Entity\Servico
            cascade: {  }
            fetch: LAZY
            joinColumns:
                servico_id:
                    referencedColumnName: id
            orphanRemoval: false
        unidade:
            targetEntity: Novosga\Entity\Unidade
            cascade: {  }
            fetch: LAZY
            joinColumns:
                unidade_id:
                    referencedColumnName: id
            orphanRemoval: false
        usuario:
            targetEntity: Novosga\Entity\Usuario
            cascade: {  }
            fetch: LAZY
            joinColumns:
                usuario_id:
                    referencedColumnName: id
            orphanRemoval: false
    lifecycleCallbacks: {  }
