<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://solarphp.org/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://solarphp.org/feed.php">
        <title>Solar Wiki</title>
        <description></description>
        <link>http://solarphp.org/</link>
        <image rdf:resource="http://solarphp.org/lib/images/favicon.ico" />
       <dc:date>2010-03-11T19:50:14-06:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://solarphp.org/manual:getting_started?rev=1263850054&amp;do=diff"/>
                <rdf:li rdf:resource="http://solarphp.org/tutorials?rev=1262650383&amp;do=diff"/>
                <rdf:li rdf:resource="http://solarphp.org/tutorials:model_relationship_recipes?rev=1262650282&amp;do=diff"/>
                <rdf:li rdf:resource="http://solarphp.org/tutorials:model_relationship_reference?rev=1262650004&amp;do=diff"/>
                <rdf:li rdf:resource="http://solarphp.org/manual:solar:execution_environment?rev=1255584710&amp;do=diff"/>
                <rdf:li rdf:resource="http://solarphp.org/manual:solar:reading_config_values?rev=1255582678&amp;do=diff"/>
                <rdf:li rdf:resource="http://solarphp.org/manual:model:related?rev=1255399103&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://solarphp.org/lib/images/favicon.ico">
        <title>Solar Wiki</title>
        <link>http://solarphp.org/</link>
        <url>http://solarphp.org/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://solarphp.org/manual:getting_started?rev=1263850054&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-18T15:27:34-06:00</dc:date>
        <dc:creator>Paul M. Jones</dc:creator>
        <title>manual:getting_started</title>
        <link>http://solarphp.org/manual:getting_started?rev=1263850054&amp;do=diff</link>
        <description>These pages have been superseded by the manual:  &lt;http://solarphp.com/manual&gt;

Please refer to the manual instead of the following pages. 

	*  First Run
		*  First Vendor
		*  First Basic App
		*  First Model
		*  First Model App
		*  Views And Layouts
		*  User Authentication</description>
    </item>
    <item rdf:about="http://solarphp.org/tutorials?rev=1262650383&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-04T18:13:03-06:00</dc:date>
        <dc:creator>Paul M. Jones</dc:creator>
        <title>tutorials</title>
        <link>http://solarphp.org/tutorials?rev=1262650383&amp;do=diff</link>
        <description>*  Solar Manual
	*  Setting up Models and working with them
	*  Model Relationship Reference
	*  Model Relationship Recipes
	*  Generating models from existing tables
	*  Starting Simply with Solar - tutorial from phpdeveloper's blog.
	*  Some Solar Form Fun - another tutorial from phpdeveloper's blog.
	*  Template Partials With Solar_View - A mini tutorial about template partials in Solar</description>
    </item>
    <item rdf:about="http://solarphp.org/tutorials:model_relationship_recipes?rev=1262650282&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-04T18:11:22-06:00</dc:date>
        <dc:creator>Paul M. Jones</dc:creator>
        <title>tutorials:model_relationship_recipes</title>
        <link>http://solarphp.org/tutorials:model_relationship_recipes?rev=1262650282&amp;do=diff</link>
        <description>These are examples of Solar_Sql_Model relationships. They serve as extractable “recipes” to be combined in different model schemes.

See also: 

	*  Setting up Models and working with them
	*  Model Relationship Reference

Basic ''HasMany'' / ''BelongsTo''


&lt;?php
class Vendor_Model_Layout extends Solar_Model
{
    /**
     *
     * Model setup.
     *
     * @return void
     *
     */
    protected function _setup()
    {
        $this-&gt;_table_name = 'layout';

        $this-&gt;_table_cols =…</description>
    </item>
    <item rdf:about="http://solarphp.org/tutorials:model_relationship_reference?rev=1262650004&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-04T18:06:44-06:00</dc:date>
        <dc:creator>Paul M. Jones</dc:creator>
        <title>tutorials:model_relationship_reference</title>
        <link>http://solarphp.org/tutorials:model_relationship_reference?rev=1262650004&amp;do=diff</link>
        <description>See also: 

	*  Setting up Models and working with them
	*  Model Relationship Recipes

`BelongsTo`, `HasMany`, `HasOne` options

 Basic options for all relationships are: 
 'option'   'description'  foreign_name   The name of the related model, eg: user  foreign_key    The name of the foreign join key, eg: user_id 
`HasManyThrough` added option
 'option'         'description'  through_key          The name of the “through” table column for the foreign records.</description>
    </item>
    <item rdf:about="http://solarphp.org/manual:solar:execution_environment?rev=1255584710&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-10-15T00:31:50-06:00</dc:date>
        <dc:creator>Jon Elofson</dc:creator>
        <title>manual:solar:execution_environment - Updates for Solar_Config::get() and Solar_Config::$_store</title>
        <link>http://solarphp.org/manual:solar:execution_environment?rev=1255584710&amp;do=diff</link>
        <description></description>
    </item>
    <item rdf:about="http://solarphp.org/manual:solar:reading_config_values?rev=1255582678&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-10-14T23:57:58-06:00</dc:date>
        <dc:creator>Jon Elofson</dc:creator>
        <title>manual:solar:reading_config_values - Updated to use the Solar_Config::get() method over the old Solar::config() method</title>
        <link>http://solarphp.org/manual:solar:reading_config_values?rev=1255582678&amp;do=diff</link>
        <description></description>
    </item>
    <item rdf:about="http://solarphp.org/manual:model:related?rev=1255399103&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-10-12T20:58:23-06:00</dc:date>
        <dc:creator>Jon Elofson</dc:creator>
        <title>manual:model:related - Adding the one to one section</title>
        <link>http://solarphp.org/manual:model:related?rev=1255399103&amp;do=diff</link>
        <description>One to Many

Consider comments on a blog post. Posts is the native table, and Comments is the foreign table. One Post has many Comments. The foreign table key is post_posts_id relating to the native table key post_id.



Model Setup

 The Posts table is the ONE in the one-to-many relationship. The Vendor_Model_Posts file uses the _hasMany($name, [$opts]) method to indicate that a single post record has many comments.</description>
    </item>
</rdf:RDF>
