Merge pull request #762 from naitsirch/yaml_reference_ext
YAML mapping documentation of uniqueConstraint
This commit is contained in:
commit
c6760e0375
@ -114,4 +114,22 @@ of several common elements:
|
|||||||
Be aware that class-names specified in the YAML files should be
|
Be aware that class-names specified in the YAML files should be
|
||||||
fully qualified.
|
fully qualified.
|
||||||
|
|
||||||
|
Reference
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Unique Constraints
|
||||||
|
------------------
|
||||||
|
|
||||||
|
It is possible to define unique constraints by the following declaration:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
# ECommerceProduct.orm.yml
|
||||||
|
ECommerceProduct:
|
||||||
|
type: entity
|
||||||
|
fields:
|
||||||
|
# definition of some fields
|
||||||
|
uniqueConstraints:
|
||||||
|
search_idx:
|
||||||
|
columns: [ name, email ]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user