From 07616094d261a72b738850a003daecf039240b1a Mon Sep 17 00:00:00 2001 From: Christian Stoller Date: Fri, 8 Feb 2013 11:21:21 +0100 Subject: [PATCH] Added YAML configuration example for "Simple Derived Identity" in "Composite and Foreign Keys as Primary Key" Tutorial --- docs/en/tutorials/composite-primary-keys.rst | 58 ++++++++++++++------ 1 file changed, 40 insertions(+), 18 deletions(-) diff --git a/docs/en/tutorials/composite-primary-keys.rst b/docs/en/tutorials/composite-primary-keys.rst index dcf8bc687..f50507fd3 100644 --- a/docs/en/tutorials/composite-primary-keys.rst +++ b/docs/en/tutorials/composite-primary-keys.rst @@ -239,26 +239,48 @@ Sometimes you have the requirement that two objects are related by a One-To-One and that the dependent class should re-use the primary key of the class it depends on. One good example for this is a user-address relationship: -.. code-block:: php +.. configuration-block:: -