Skip to content

Add custom Doctrine attributes #396

@AymDev

Description

@AymDev

I'm using the Doctrine attributes as described in the documentation, but now I'd like to have the same behavior to save other information returned by my custom provider (let's say the country). I tried to create my own attribute and decorate the AttributeDriver but it cannot work because I can't change the Doctrine listener behavior: it only handles latitude/longitude.

I could make my own Doctrine listener but I'll end up partially copying the bundle source code and it will make 2 calls to the provider. I'll just switch to a plain provider call for now but is there a way to register custom attributes that I didn't find ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions