From 2f0b4a5d8118d0863861a16999a4ea9787888ad9 Mon Sep 17 00:00:00 2001 From: entering Date: Wed, 25 Dec 2013 22:11:15 +0000 Subject: [PATCH] Add an example to doc of YAML mapping --- docs/en/reference/yaml-mapping.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/en/reference/yaml-mapping.rst b/docs/en/reference/yaml-mapping.rst index d68a6e3d4..e929306e0 100644 --- a/docs/en/reference/yaml-mapping.rst +++ b/docs/en/reference/yaml-mapping.rst @@ -87,6 +87,13 @@ of several common elements: name: type: string length: 50 + email: + type: string + length: 32 + column: user_email + unique: true + options: + fixed: true oneToOne: address: targetEntity: Address