Entities\Contact:
    type: entity
    table: contacts
    repositoryClass: Repositories\ContactRepository
    id:
        id:
            type: integer
            generator:
                strategy: AUTO
    fields:
        name:
            type: string
            nullable: false
            length: 100
        email:
            type: string
            nullable: true
            length: 100
        phone:
            type: integer
            nullable: true
    oneToMany:
        message:
            targetEntity: Entities\Message
            mappedBy: contact
    lifecycleCallbacks: { }