Answer the question
In order to leave comments, you need to log in
How to create an ORM description/validation of a unique key from two fields?
There is an `Entity\Validator\Unique` class to check for uniqueness. Only it checks the uniqueness of a particular field. How to check if I have a unique key created from two fields `unique ux_table_name (PROPERTY_ID, XML_ID)` when creating a table?
Answer the question
In order to leave comments, you need to log in
As far as I know, there is no such possibility in ORM at the moment. Either create an ORM table via a SQL query, or control it on bitris events
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question