From 64e1f6e44aa6670aac1f3cc9e96691cd6cb64453 Mon Sep 17 00:00:00 2001 From: gnat <gnat@625475ce-881a-0410-a577-b389adb331d8> Date: Wed, 9 Jan 2008 20:02:32 +0000 Subject: [PATCH] added another schema example with onDelete: CASCADE generalized a connection example to use user:pass instead of jwage:pass... --- manual/docs/en/schema-files.txt | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/manual/docs/en/schema-files.txt b/manual/docs/en/schema-files.txt index 0528caee6..80db02285 100644 --- a/manual/docs/en/schema-files.txt +++ b/manual/docs/en/schema-files.txt @@ -108,10 +108,40 @@ GroupUser: primary: true </code> ++++ One to One Aggregate + +<code type="yaml"> +--- +User: + columns: + id: + type: integer(4) + primary: true + autoincrement: true + contact_id: + type: integer(4) + username: + type: string(255) + password: + type: string(255) + relations: + Contact: + foreignType: one + onDelete: CASCADE +Contact: + columns: + id: + type: integer(4) + primary: true + autoincrement: true + name: + type: string(255) +</code> + ++ Connection Binding <code type="php"> -Doctrine::connection('mysql://jwage:pass@localhost/connection1', 'connection1'); +Doctrine::connection('mysql://user:pass@localhost/connection1', 'connection1'); </code> <code type="yaml">