B
B
BeEasyO2018-08-17 11:46:02
1C-Bitrix
BeEasyO, 2018-08-17 11:46:02

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

1 answer(s)
A
Andrey Nikolaev, 2018-08-17
@gromdron

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 question

Ask a Question

731 491 924 answers to any question