diff options
author | wei <> | 2007-05-03 04:28:24 +0000 |
---|---|---|
committer | wei <> | 2007-05-03 04:28:24 +0000 |
commit | be91933546f29b5434b4d0ac1f54e51da3fbe4a9 (patch) | |
tree | 20f0142be48a6ec9589621856cc6bf50ab3e9c2f /demos/quickstart/protected | |
parent | ea9e7eb535b460218b693d4e5fec80297eb3e360 (diff) |
ar docs
Diffstat (limited to 'demos/quickstart/protected')
-rw-r--r-- | demos/quickstart/protected/pages/Database/ActiveRecord.page | 13 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/Database/ar_objects.png | bin | 14323 -> 19328 bytes | |||
-rw-r--r-- | demos/quickstart/protected/pages/Database/ar_objects.vsd | bin | 183296 -> 184832 bytes | |||
-rw-r--r-- | demos/quickstart/protected/pages/Database/ar_relations.png | bin | 9278 -> 9693 bytes | |||
-rw-r--r-- | demos/quickstart/protected/pages/Database/ar_relations.vsd | bin | 97280 -> 98304 bytes |
5 files changed, 13 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Database/ActiveRecord.page b/demos/quickstart/protected/pages/Database/ActiveRecord.page index 967aae89..99c7acf8 100644 --- a/demos/quickstart/protected/pages/Database/ActiveRecord.page +++ b/demos/quickstart/protected/pages/Database/ActiveRecord.page @@ -424,6 +424,19 @@ that supports foreign key contraints. For ActiveRecord relationships to function underlying database must support foreign key constraints (e.g. MySQL with InnoDB). </p> +<p> +In the following sections we shall consider the following entity relationship between +<tt>Teams</tt>, <tt>Players</tt>, <tt>Skills</tt> and <tt>Profiles</tt>. +</p> +<img src="<%~ ar_relations.png %>" class="figure" /> + + +<p>The goal is to obtain object models that represents to some degree the entity +relationships in the above figure. +</p> + +<img src="<%~ ar_objects.png %>" class="figure"> + <h2>Foreign Key Mapping</h2> diff --git a/demos/quickstart/protected/pages/Database/ar_objects.png b/demos/quickstart/protected/pages/Database/ar_objects.png Binary files differindex 027d1e96..4171892c 100644 --- a/demos/quickstart/protected/pages/Database/ar_objects.png +++ b/demos/quickstart/protected/pages/Database/ar_objects.png diff --git a/demos/quickstart/protected/pages/Database/ar_objects.vsd b/demos/quickstart/protected/pages/Database/ar_objects.vsd Binary files differindex 595b7d86..5b3ce4d7 100644 --- a/demos/quickstart/protected/pages/Database/ar_objects.vsd +++ b/demos/quickstart/protected/pages/Database/ar_objects.vsd diff --git a/demos/quickstart/protected/pages/Database/ar_relations.png b/demos/quickstart/protected/pages/Database/ar_relations.png Binary files differindex df72823c..48e29f48 100644 --- a/demos/quickstart/protected/pages/Database/ar_relations.png +++ b/demos/quickstart/protected/pages/Database/ar_relations.png diff --git a/demos/quickstart/protected/pages/Database/ar_relations.vsd b/demos/quickstart/protected/pages/Database/ar_relations.vsd Binary files differindex 9b27e7e3..7cb353fe 100644 --- a/demos/quickstart/protected/pages/Database/ar_relations.vsd +++ b/demos/quickstart/protected/pages/Database/ar_relations.vsd |