1
0
mirror of synced 2025-01-31 04:21:44 +03:00

added yaml mapping documentation of uniqueConstraint

This commit is contained in:
Christian Stoller 2013-08-20 11:17:04 +02:00
parent cc83ac6ce8
commit a765f2e3b6

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 ]