Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UniqueEntity Annotation #246

Open
mhlsf opened this issue Jan 27, 2021 · 0 comments
Open

UniqueEntity Annotation #246

mhlsf opened this issue Jan 27, 2021 · 0 comments

Comments

@mhlsf
Copy link

mhlsf commented Jan 27, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant