diff options
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 |