Emgmbh\UserBundle\Entity\WorkerDocumentAccessHistory:
    type: entity
    id:
        id:
            type: integer
            options:
                unsigned: true
            id: true
            generator:
                strategy: IDENTITY

    fields:
        createdAt:
            type: datetime
            gedmo:
                timestampable:
                    on: create

    manyToOne:
        document:
            targetEntity: Emgmbh\UserBundle\Entity\WorkerDocument
            inversedBy: accessHistory
        user:
            targetEntity: Emgmbh\UserBundle\Entity\User