Browse files

Removed ManyThrough from docs.

  • Loading branch information...
1 parent b4cc70f commit e02dd9f8b0d75370279f4ae08b65c421cee80c16 @jschreuder jschreuder committed Apr 25, 2011
View
3 assets/js/nav.js
@@ -133,8 +133,7 @@ var nav = {
"Belongs To": "packages/orm/relations/belongs_to.html",
"Has One": "packages/orm/relations/has_one.html",
"Has Many": "packages/orm/relations/has_many.html",
- "Many to Many": "packages/orm/relations/many_many.html",
- "Many Through": "packages/orm/relations/many_through.html"
+ "Many to Many": "packages/orm/relations/many_many.html"
},
"Observers": {
"Introduction": "packages/orm/observers/intro.html",
View
2 packages/orm/relations/belongs_to.html
@@ -35,7 +35,7 @@
<section>
<h2>Relations: Belongs To</h2>
- <p>To be written.</p>
+ <p>Has the primary key of the relation keps in its table, belongs to 1 related object.</p>
<h3>Full config example with defaults as values</h3>
View
3 packages/orm/relations/intro.html
@@ -182,9 +182,6 @@
<li><a href="many_many.html">Many to Many</a><br />
Have their primary keys saved in a table in between which keeps pairs of primary keys from both
tables. Have and belong to many objects.</li>
- <li><a href="many_through.html">Many Through</a><br />
- Same as "Many to Many" but have a model relating them to each other instead of just a 2-column
- table.</li>
</ul>
</article>
View
71 packages/orm/relations/many_through.html
@@ -1,71 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="utf-8">
- <title>Orm - Relations - Many Through - Fuel Documentation</title>
- <link href="../../../assets/css/main.css" media="screen" rel="stylesheet" />
- <script type="text/javascript" src="../../../assets/js/jquery-1.4.4.min.js"></script>
- <script type="text/javascript" src="../../../assets/js/nav.js"></script>
- <script type="text/javascript" src="../../../assets/js/highlight.pack.js"></script>
- <script type="text/javascript">
- $(function() {
- show_nav('ormpackage', '../../../');
- });
- hljs.tabReplace = ' ';
- hljs.initHighlightingOnLoad();
- </script>
-</head>
-<body>
-
- <header>
- <h1>Fuel Documentation</h1>
- </header>
-
- <div id="main-nav"></div>
-
- <section id="content">
- <h2>Orm</h2>
-
- <p>Orm is short for <a href="http://en.wikipedia.org/wiki/Object_relational_mapper" target="_blank">Object
- Relational Mapper</a> which does 2 things: it maps your database table rows to objects and it allows you
- to esteblish relations between those objects.<br />
- It follows closely the <a href="http://en.wikipedia.org/wiki/Active_record_pattern" target="_blank">
- Active Record Pattern</a>, but was also influenced by other systems.</p>
-
- <section>
- <h2>Relations: Many Though</h2>
-
- <p>To be written.</p>
-
- <p class="note">Saving/deleting these are not yet supported directly, need to be done through the
- model connecting them.</p>
-
- <h3>Full config example with defaults as values</h3>
-
- <pre class="php"><code>// in a Model_Post which has and belongs to many Users with a model in between
-// = multiple posts per user and multiple users (authors) per post
-$_many_through = array(
- 'users' => array(
- 'key_from' => 'id',
- 'key_through_from' => 'post_id', // column 1 from the table in between, should match a posts.id
- 'model_through' => 'Model_Posts_Users', // both models plural without prefix in alphabetical order
- 'key_through_to' => 'user_id', // column 2 from the table in between, should match a users.id
- 'model_to' => 'Model_User',
- 'key_to' => 'id',
- 'cascade_save' => true,
- 'cascade_delete' => false,
- )
-);</code></pre>
- </section>
-
- </section>
-
- <section id="footer">
- <p>
- <a href="http://fuelphp.com">Fuel</a> is released under the MIT license.<br />
- &copy; 2010 - 2011 Fuel Development Team
- </p>
- </section>
-
-</body>
-</html>

0 comments on commit e02dd9f

Please sign in to comment.