Skip to content

UniqueEntity Annotation #246

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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