iermb / SIMBA3

1 stars 0 forks source link

Unique constraint of multiple attributes #13

Closed metathairs closed 3 years ago

metathairs commented 3 years ago

@jordillobet https://github.com/iermb/SIMBA3/blob/5fd202e0cb264ecce431ff776b9646c8151b267a/code/SIMBA3/src/Api/Persistence/Migrations/Variable/Entity.TypeArea.orm.xml#L15

I found this specification for creating unique constraint. Though it seams working only for mongodb ODM implementation.

jordillobet commented 3 years ago

Fix, dql. Check this documentation for creating join's in DQL

jordillobet commented 3 years ago

Here the link https://www.doctrine-project.org/projects/doctrine-orm/en/2.8/reference/dql-doctrine-query-language.html#joins