1
0
mirror of synced 2025-01-18 22:41:43 +03:00

Merge pull request #762 from naitsirch/yaml_reference_ext

YAML mapping documentation of uniqueConstraint
This commit is contained in:
Benjamin Eberlei 2013-09-08 06:22:42 -07:00
commit c6760e0375

View File

@ -114,4 +114,22 @@ of several common elements:
Be aware that class-names specified in the YAML files should be
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 ]