Skip to content

UniqueEntity Annotation #246

@mhlsf

Description

@mhlsf

UniqueEntity annotation doesn't work with TDBMObject, that force us to create a method for each Dao to check unicity of an object base on a field in a table.

As a workaround, I made a custom constraint as Symfony validation documentation says.

It would be nice if it was directly available inside of TDBM as this is a commonly used feature.

Is this something that should be done here are on https://github.com/thecodingmachine/graphqlite-symfony-validator-bridge ?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions