<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-29464</id>
	<title>Nabble - SolarPHP Talk</title>
	<updated>2009-12-12T14:13:48Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/SolarPHP-Talk-f29464.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SolarPHP-Talk-f29464.html" />
	<subtitle type="html">&lt;p&gt;
Solar is a PHP 5 framework for rapid application development. It is fully name-spaced and uses enterprise application design patterns, with built-in support for localization and configuration at all levels.
&lt;/p&gt;
&lt;p&gt;
The Solar-Talk list is for general discussion about development and use of Solar.
&lt;/p&gt;</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26761611</id>
	<title>Extending Solar config</title>
	<published>2009-12-12T14:13:48Z</published>
	<updated>2009-12-12T14:13:48Z</updated>
	<author>
		<name>Richard Thomas-9</name>
	</author>
	<content type="html">I have looked at postConfig/preConfig &amp;nbsp;and load_callback and they only half solve my current problem/train of thought.
&lt;br&gt;&lt;br&gt;Basically I would like to load config items from a DB, which by itself is easy and can be done with the above methods.. My problems/thoughts on this are as follows
&lt;br&gt;&lt;br&gt;1. You have to load everything up front.. No way to load on access (IE if we don't use App_Class_Something this page load why spend the time/money loading the config)
&lt;br&gt;2. Some of the things I am playing with are command line daemons and some things can be changed on the fly but the config is read only.
&lt;br&gt;&lt;br&gt;What I envision is the ability to load config on demand.. And being able to &amp;quot;clear&amp;quot; whats in memory when needed to either force a reload of the classes config or to save memory.
&lt;br&gt;&lt;br&gt;The third thought is I am going down the wrong path all together to begin with and thats not what Solar_Config is for... My thought on this is to have all config within the same system...
&lt;br&gt;&lt;br&gt;I do think that item 1. is a important point to consider regardless because as the apps built with Solar get bigger and bigger, the overhead of &amp;quot;load it all&amp;quot; can become an issue.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Richard Thomas
&lt;br&gt;&lt;a href=&quot;http://www.cyberlot.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cyberlot.net&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26761611&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Extending-Solar-config-tp26761611p26761611.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26619962</id>
	<title>sfer Solar Framework Extension Repository</title>
	<published>2009-12-02T18:14:18Z</published>
	<updated>2009-12-02T18:14:18Z</updated>
	<author>
		<name>Richard Thomas-9</name>
	</author>
	<content type="html">Needed a place to work/put some Solar stuff I was working on.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://code.google.com/p/sfer/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/sfer/&lt;/a&gt;&lt;br&gt;&lt;br&gt;First being a controller used to integrate jquery and Solar
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://code.google.com/p/sfer/source/browse/trunk/Sfer/Controller/Jquery.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/sfer/source/browse/trunk/Sfer/Controller/Jquery.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;and the example app that goes along with it
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://code.google.com/p/sfer/source/browse/#svn/trunk/Sfer/App&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/sfer/source/browse/#svn/trunk/Sfer/App&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Allows you to call class methods using jquery and also inject jquery methods into a page.
&lt;br&gt;&lt;br&gt;Richard Thomas
&lt;br&gt;&lt;a href=&quot;http://www.cyberlot.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cyberlot.net&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26619962&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/sfer-Solar-Framework-Extension-Repository-tp26619962p26619962.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26545586</id>
	<title>Re: help with hasMany belongsTo</title>
	<published>2009-11-27T09:33:54Z</published>
	<updated>2009-11-27T09:33:54Z</updated>
	<author>
		<name>Jeff Surgeson-3</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; 'eager' =&amp;gt; array(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;'cricket_team_players',
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;'cricket_scores' =&amp;gt; array(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;eager =&amp;gt; array(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'cricket_score_innings',
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'cricket_score_bowling',
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)
&lt;br&gt;&amp;gt; )
&lt;br&gt;&amp;gt; modifying your first query to the above should work, no?
&lt;/div&gt;&lt;br&gt;Quick try, seems to do the trick, thank you kind sir!
&lt;br&gt;&lt;br&gt;Now all I need to do is get a single form that will add/update all those 
&lt;br&gt;related tables, to work without borking everything :D
&lt;br&gt;&lt;br&gt;Thanks again
&lt;br&gt;&amp;nbsp;
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545586&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/help-with-hasMany-belongsTo-tp26543564p26545586.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26544628</id>
	<title>Re: help with hasMany belongsTo</title>
	<published>2009-11-27T08:24:21Z</published>
	<updated>2009-11-27T08:24:21Z</updated>
	<author>
		<name>Anthony Gentile</name>
	</author>
	<content type="html">&amp;#39;eager&amp;#39; =&amp;gt; array(&lt;br&gt;
    &amp;#39;cricket_team_players&amp;#39;,&lt;br&gt;
    &amp;#39;cricket_scores&amp;#39; =&amp;gt; array(&lt;br&gt;                 eager =&amp;gt; array(&lt;br&gt;                            &amp;#39;cricket_score_innings&amp;#39;,&lt;br&gt;
                             &amp;#39;cricket_score_bowling&amp;#39;,&lt;br&gt;                  )&lt;br&gt;         )&lt;br&gt;
)&lt;br&gt;&lt;br&gt;modifying your first query to the above should work, no?&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;Anthony Gentile&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 27, 2009 at 9:04 AM, Jeff Surgeson &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544628&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeff@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

Hi All&lt;br&gt;
&lt;br&gt;
Trying to do a data model for a cricket club and need some advice from the&lt;br&gt;
Solar_Sql_Model &amp;quot;Fundi&amp;#39;s&amp;quot;&lt;br&gt;
&lt;br&gt;
Apologies in advance for the drawn out explanation, but complex relationships&lt;br&gt;
scramble my brains, so I need to lay it out so I dont confuse myself,  not&lt;br&gt;
that it takes much :D&lt;br&gt;
&lt;br&gt;
Below is my data models and relationships, all seems to work ok except some&lt;br&gt;
part of the relationships is missing, or wrong, as I dont get back all that I&lt;br&gt;
would like.&lt;br&gt;
&lt;br&gt;
If I run a query on CricketTeams&lt;br&gt;
&lt;br&gt;
&amp;#39;eager&amp;#39; =&amp;gt; array(&lt;br&gt;
    &amp;#39;cricket_team_players&amp;#39;,&lt;br&gt;
    &amp;#39;cricket_scores&amp;#39;,&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
I get cricket_teams with related&lt;br&gt;
        cricket_team_players_collection&lt;br&gt;
        cricket_scores_collection&lt;br&gt;
&lt;br&gt;
If I run a query on CricketScores&lt;br&gt;
&lt;br&gt;
&amp;#39;eager&amp;#39;  =&amp;gt; array(&lt;br&gt;
    &amp;#39;cricket_teams&amp;#39;,&lt;br&gt;
    &amp;#39;cricket_score_innings&amp;#39;,&lt;br&gt;
    &amp;#39;cricket_score_bowling&amp;#39;,&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
I get back cricket_scores with related&lt;br&gt;
        cricket_teams_record&lt;br&gt;
        cricket_scores_innings_collection&lt;br&gt;
        cricket_scores_bowling_collection&lt;br&gt;
&lt;br&gt;
How do I set up the relationship so that if I run a query on cricket_teams it&lt;br&gt;
also returns the innings and bowling collections as it does when I run the&lt;br&gt;
query on cricket_scores, and not just the cricket_scores_collection?&lt;br&gt;
&lt;br&gt;
#######################&lt;br&gt;
Standardcricket_Model_CricketTeams&lt;br&gt;
&lt;br&gt;
cols = team_id&lt;br&gt;
&lt;br&gt;
$this-&amp;gt;_hasMany cricket_team_players&lt;br&gt;
&amp;#39;foreign_class&amp;#39; =&amp;gt; &amp;#39;Standardcricket_Model_CricketTeamPlayers&amp;#39;,&lt;br&gt;
&amp;#39;foreign_key&amp;#39;   =&amp;gt; &amp;#39;team_id&amp;#39;,&lt;br&gt;
&lt;br&gt;
$this-&amp;gt;_hasMany cricket_scores&lt;br&gt;
&amp;#39;foreign_class&amp;#39; =&amp;gt; &amp;#39;Standardcricket_Model_CricketScores&amp;#39;,&lt;br&gt;
&amp;#39;foreign_key&amp;#39;   =&amp;gt; &amp;#39;team_id&amp;#39;,&lt;br&gt;
&lt;br&gt;
Standardcricket_Model_CricketTeamPlayers&lt;br&gt;
&lt;br&gt;
cols = player_id  team_id&lt;br&gt;
&lt;br&gt;
$this-&amp;gt;_belongsTo cricket_teams&lt;br&gt;
&amp;#39;foreign_class&amp;#39; =&amp;gt; &amp;#39;Standardcricket_Model_CricketTeams&amp;#39;,&lt;br&gt;
&amp;#39;foreign_key&amp;#39;   =&amp;gt; &amp;#39;team_id&amp;#39;,&lt;br&gt;
&lt;br&gt;
#######################&lt;br&gt;
Standardcricket_Model_CricketScores&lt;br&gt;
&lt;br&gt;
cols = scores_id team_id innings_id bowling_id&lt;br&gt;
&lt;br&gt;
$this-&amp;gt;_belongsTo cricket_teams&lt;br&gt;
&amp;#39;foreign_class&amp;#39; =&amp;gt; &amp;#39;Standardcricket_Model_CricketTeams&amp;#39;,&lt;br&gt;
&amp;#39;foreign_key&amp;#39;   =&amp;gt; &amp;#39;team_id&amp;#39;,&lt;br&gt;
&lt;br&gt;
$this-&amp;gt;_hasMany cricket_score_innings&lt;br&gt;
&amp;#39;foreign_class&amp;#39; =&amp;gt; &amp;#39;Standardcricket_Model_CricketScoreInnings&amp;#39;,&lt;br&gt;
&amp;#39;foreign_key&amp;#39;   =&amp;gt; &amp;#39;scores_id&amp;#39;,&lt;br&gt;
&lt;br&gt;
$this-&amp;gt;_hasMany cricket_score_bowling&lt;br&gt;
&amp;#39;foreign_class&amp;#39; =&amp;gt; &amp;#39;Standardcricket_Model_CricketScoreBowling&amp;#39;,&lt;br&gt;
&amp;#39;foreign_key&amp;#39;   =&amp;gt; &amp;#39;scores_id&amp;#39;,&lt;br&gt;
&lt;br&gt;
##########################&lt;br&gt;
Standardcricket_Model_CricketScoreInnings&lt;br&gt;
&lt;br&gt;
cols = innings_id scores_id&lt;br&gt;
&lt;br&gt;
$this-&amp;gt;_belongsTo cricket_scores&lt;br&gt;
&amp;#39;foreign_class&amp;#39; =&amp;gt; &amp;#39;Standardcricket_Model_CricketScores&amp;#39;,&lt;br&gt;
&amp;#39;foreign_key&amp;#39;   =&amp;gt; &amp;#39;scores_id&amp;#39;,&lt;br&gt;
&lt;br&gt;
###########################&lt;br&gt;
Standardcricket_Model_CricketScoreBowling&lt;br&gt;
&lt;br&gt;
cols = bowling_id scores_id&lt;br&gt;
&lt;br&gt;
$this-&amp;gt;_belongsTo cricket_scores&lt;br&gt;
&amp;#39;foreign_class&amp;#39; =&amp;gt; &amp;#39;Standardcricket_Model_CricketScores&amp;#39;,&lt;br&gt;
&amp;#39;foreign_key&amp;#39;   =&amp;gt; &amp;#39;scores_id&amp;#39;,&lt;br&gt;
&lt;br&gt;
Regards&lt;br&gt;
Jeff Surgeson&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
Solar-talk mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544628&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544628&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/help-with-hasMany-belongsTo-tp26543564p26544628.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26543564</id>
	<title>help with hasMany belongsTo</title>
	<published>2009-11-27T07:02:41Z</published>
	<updated>2009-11-27T07:02:41Z</updated>
	<author>
		<name>Jeff Surgeson-3</name>
	</author>
	<content type="html">Hi All
&lt;br&gt;&lt;br&gt;Trying to do a data model for a cricket club and need some advice from the 
&lt;br&gt;Solar_Sql_Model &amp;quot;Fundi's&amp;quot;
&lt;br&gt;&lt;br&gt;Apologies in advance for the drawn out explanation, but complex relationships 
&lt;br&gt;scramble my brains, so I need to lay it out so I dont confuse myself, &amp;nbsp;not 
&lt;br&gt;that it takes much :D
&lt;br&gt;&lt;br&gt;Below is my data models and relationships, all seems to work ok except some 
&lt;br&gt;part of the relationships is missing, or wrong, as I dont get back all that I 
&lt;br&gt;would like.
&lt;br&gt;&lt;br&gt;If I run a query on CricketTeams
&lt;br&gt;&lt;br&gt;'eager' =&amp;gt; array(
&lt;br&gt;&amp;nbsp; &amp;nbsp; 'cricket_team_players',
&lt;br&gt;&amp;nbsp; &amp;nbsp; 'cricket_scores',
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;I get cricket_teams with related 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cricket_team_players_collection 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cricket_scores_collection
&lt;br&gt;&lt;br&gt;If I run a query on CricketScores
&lt;br&gt;&lt;br&gt;'eager' &amp;nbsp;=&amp;gt; array(
&lt;br&gt;&amp;nbsp; &amp;nbsp; 'cricket_teams',
&lt;br&gt;&amp;nbsp; &amp;nbsp; 'cricket_score_innings',
&lt;br&gt;&amp;nbsp; &amp;nbsp; 'cricket_score_bowling',
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;I get back cricket_scores with related 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cricket_teams_record
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cricket_scores_innings_collection
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cricket_scores_bowling_collection
&lt;br&gt;&lt;br&gt;How do I set up the relationship so that if I run a query on cricket_teams it 
&lt;br&gt;also returns the innings and bowling collections as it does when I run the 
&lt;br&gt;query on cricket_scores, and not just the cricket_scores_collection?
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;#######################
&lt;br&gt;Standardcricket_Model_CricketTeams 
&lt;br&gt;&lt;br&gt;cols = team_id
&lt;br&gt;&lt;br&gt;$this-&amp;gt;_hasMany cricket_team_players
&lt;br&gt;'foreign_class' =&amp;gt; 'Standardcricket_Model_CricketTeamPlayers',
&lt;br&gt;'foreign_key' &amp;nbsp; =&amp;gt; 'team_id',
&lt;br&gt;&lt;br&gt;$this-&amp;gt;_hasMany cricket_scores
&lt;br&gt;'foreign_class' =&amp;gt; 'Standardcricket_Model_CricketScores',
&lt;br&gt;'foreign_key' &amp;nbsp; =&amp;gt; 'team_id',
&lt;br&gt;&lt;br&gt;Standardcricket_Model_CricketTeamPlayers
&lt;br&gt;&lt;br&gt;cols = player_id &amp;nbsp;team_id
&lt;br&gt;&lt;br&gt;$this-&amp;gt;_belongsTo cricket_teams
&lt;br&gt;'foreign_class' =&amp;gt; 'Standardcricket_Model_CricketTeams',
&lt;br&gt;'foreign_key' &amp;nbsp; =&amp;gt; 'team_id',
&lt;br&gt;&lt;br&gt;#######################
&lt;br&gt;Standardcricket_Model_CricketScores
&lt;br&gt;&lt;br&gt;cols = scores_id team_id innings_id bowling_id
&lt;br&gt;&lt;br&gt;$this-&amp;gt;_belongsTo cricket_teams
&lt;br&gt;'foreign_class' =&amp;gt; 'Standardcricket_Model_CricketTeams',
&lt;br&gt;'foreign_key' &amp;nbsp; =&amp;gt; 'team_id',
&lt;br&gt;&lt;br&gt;$this-&amp;gt;_hasMany cricket_score_innings
&lt;br&gt;'foreign_class' =&amp;gt; 'Standardcricket_Model_CricketScoreInnings',
&lt;br&gt;'foreign_key' &amp;nbsp; =&amp;gt; 'scores_id',
&lt;br&gt;&lt;br&gt;$this-&amp;gt;_hasMany cricket_score_bowling
&lt;br&gt;'foreign_class' =&amp;gt; 'Standardcricket_Model_CricketScoreBowling',
&lt;br&gt;'foreign_key' &amp;nbsp; =&amp;gt; 'scores_id',
&lt;br&gt;&lt;br&gt;##########################
&lt;br&gt;Standardcricket_Model_CricketScoreInnings
&lt;br&gt;&lt;br&gt;cols = innings_id scores_id
&lt;br&gt;&lt;br&gt;$this-&amp;gt;_belongsTo cricket_scores
&lt;br&gt;'foreign_class' =&amp;gt; 'Standardcricket_Model_CricketScores',
&lt;br&gt;'foreign_key' &amp;nbsp; =&amp;gt; 'scores_id',
&lt;br&gt;&lt;br&gt;###########################
&lt;br&gt;Standardcricket_Model_CricketScoreBowling
&lt;br&gt;&lt;br&gt;cols = bowling_id scores_id
&lt;br&gt;&lt;br&gt;$this-&amp;gt;_belongsTo cricket_scores
&lt;br&gt;'foreign_class' =&amp;gt; 'Standardcricket_Model_CricketScores',
&lt;br&gt;'foreign_key' &amp;nbsp; =&amp;gt; 'scores_id',
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Jeff Surgeson
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543564&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/help-with-hasMany-belongsTo-tp26543564p26543564.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26491250</id>
	<title>Re: how to run a background process with solar</title>
	<published>2009-11-23T22:57:38Z</published>
	<updated>2009-11-23T22:57:38Z</updated>
	<author>
		<name>Jeff Surgeson-3</name>
	</author>
	<content type="html">&amp;gt; Thanks for this, Jeff. I am sure I will have to do something similar
&lt;br&gt;&amp;gt; soon, so I will save this as an example of 'howto'.
&lt;br&gt;&lt;br&gt;Well that will make a nice change from me always asking :)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; Cricket. Now there's a game I have never had time to figure out :)
&lt;br&gt;&lt;br&gt;Me neither, find it kinda pointless, had no choice as I am doing a site for a 
&lt;br&gt;cricket club, you dont have a spare data model for a 
&lt;br&gt;team/player/profile/scorecard/stats, do you? :D
&lt;br&gt;&lt;br&gt;Take care
&lt;br&gt;jeff 
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26491250&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-run-a-background-process-with-solar-tp26473471p26491250.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26489436</id>
	<title>Re: how to run a background process with solar</title>
	<published>2009-11-23T18:04:46Z</published>
	<updated>2009-11-23T18:04:46Z</updated>
	<author>
		<name>Jon Elofson</name>
	</author>
	<content type="html">Thanks for this, Jeff. I am sure I will have to do something similar
&lt;br&gt;soon, so I will save this as an example of 'howto'.
&lt;br&gt;&lt;br&gt;Cricket. Now there's a game I have never had time to figure out :)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, 2009-11-24 at 01:22 +0200, Jeff Surgeson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks to all for the pointers and help, I am able to use my solar app without 
&lt;br&gt;&amp;gt; modification, my script executes it periodicaly and saves to cache, my web 
&lt;br&gt;&amp;gt; scripts then only load from cache, works like a charm. :D
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I did the following::
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 1. set up crontab to run periodically
&lt;br&gt;&amp;gt; 2. created a solar bootstrap file php script for the cron job to run
&lt;br&gt;&amp;gt; 3. created minimal config file
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; // my bootstrap php script file
&lt;br&gt;&amp;gt; $system = dirname(dirname(__FILE__));
&lt;br&gt;&amp;gt; set_include_path(&amp;quot;$system/include&amp;quot;);
&lt;br&gt;&amp;gt; require_once 'Solar.php';
&lt;br&gt;&amp;gt; $config = &amp;quot;$system/config/Cron.config.php&amp;quot;;
&lt;br&gt;&amp;gt; Solar::start($config);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $feeds = array(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;	'rss-cricket' 		=&amp;gt; '&lt;a href=&quot;http://www.supersport.com/rss/default.aspx?site=3'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.supersport.com/rss/default.aspx?site=3'&lt;/a&gt;,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 	'rss-cycling' 		=&amp;gt; '&lt;a href=&quot;http://www.supersport.com/rss/default.aspx?site=7'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.supersport.com/rss/default.aspx?site=7'&lt;/a&gt;,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;	'rss-motorsport' &amp;nbsp;	=&amp;gt; '&lt;a href=&quot;http://www.supersport.com/rss/default.aspx?site=6'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.supersport.com/rss/default.aspx?site=6'&lt;/a&gt;,
&lt;br&gt;&amp;gt; );
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; foreach ($feeds as $area =&amp;gt; $url) {
&lt;br&gt;&amp;gt; 	$rss = Solar::factory('Badger_Rss', $config = array(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	'cache_active' &amp;nbsp;	=&amp;gt; true,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	'cache_adapter' &amp;nbsp; &amp;nbsp; 	=&amp;gt; 'Solar_Cache_Adapter_File',
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	'cache_life' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	=&amp;gt; 3600, 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	'cache_prefix' &amp;nbsp;	=&amp;gt; 'RssCron',
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	'content_area' &amp;nbsp;	=&amp;gt; $area,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 	));
&lt;br&gt;&amp;gt; 	$rss-&amp;gt;load($url);
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; Solar::stop();
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; // my config file
&lt;br&gt;&amp;gt; $config = array();
&lt;br&gt;&amp;gt; $system = dirname(dirname(__FILE__));
&lt;br&gt;&amp;gt; $config['Solar']['system'] &amp;nbsp;= $system;
&lt;br&gt;&amp;gt; return $config;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Solar-talk mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489436&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489436&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-run-a-background-process-with-solar-tp26473471p26489436.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26489419</id>
	<title>Relationship Advice</title>
	<published>2009-11-23T18:02:51Z</published>
	<updated>2009-11-23T18:02:51Z</updated>
	<author>
		<name>Jon Elofson</name>
	</author>
	<content type="html">Couldn't resist that subject line :)
&lt;br&gt;&lt;br&gt;Actually, this isn't about advice, but rather clarification that I
&lt;br&gt;understand some of the relationship naming reasoning.
&lt;br&gt;&lt;br&gt;The majority of relationships I work with are hasMany/belongsTo. Today I
&lt;br&gt;was setting up a hasOne/belongsTo but ran into a snag.
&lt;br&gt;&lt;br&gt;Normally, I set them up like this:
&lt;br&gt;&lt;br&gt;$this-&amp;gt;_hasMany('my_table', array('foreign_key'=&amp;gt;'some_id'));
&lt;br&gt;&lt;br&gt;Where 'my_table' is the name of the table. This generally works as
&lt;br&gt;expected.
&lt;br&gt;&lt;br&gt;Today I tried this:
&lt;br&gt;&lt;br&gt;$this-&amp;gt;_hasOne('my_table', array('foreign_key'=&amp;gt;'some_id'));
&lt;br&gt;But this didn't work. Solar tried to find Vendor_Model_MyTables
&lt;br&gt;&lt;br&gt;The _setForeignClass() method assumes the relationship name is singular
&lt;br&gt;and should, therefore, look for a pluralized model. 
&lt;br&gt;&lt;br&gt;With the hasMany, _setForeignClass() assumes the relationship name is
&lt;br&gt;already plural and doesn't pluralize it. 
&lt;br&gt;&lt;br&gt;This confused me a little since I was, by default, using the table name
&lt;br&gt;as the relationship name. Normally, this works well, since my tables are
&lt;br&gt;typically pluralized (invoices, users, categories, etc). 
&lt;br&gt;&lt;br&gt;So, just to confirm, the idea for naming relationships is as follows:
&lt;br&gt;&lt;br&gt;$this-&amp;gt;_hasMany('foos'); 
&lt;br&gt;Looks for Vendor_Model_Foos
&lt;br&gt;&lt;br&gt;$this-&amp;gt;_hasOne('foo');
&lt;br&gt;Looks for Vendor_Model_Foos
&lt;br&gt;&lt;br&gt;Yes? 
&lt;br&gt;&lt;br&gt;And if need be this can be overridden with 'foreign_class' option.
&lt;br&gt;&lt;br&gt;Therefore, as a naming convention, use plurals for the models. &amp;nbsp;
&lt;br&gt;This makes sense to me from an English language perspective, but threw
&lt;br&gt;me off for a minute. 
&lt;br&gt;&lt;br&gt;I am mostly just writing this to get it straight in my head. If anything
&lt;br&gt;seems wrong, let me know.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489419&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Relationship-Advice-tp26489419p26489419.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26488376</id>
	<title>Re: Reviewing the Unfounded branch</title>
	<published>2009-11-23T16:02:48Z</published>
	<updated>2009-11-23T16:02:48Z</updated>
	<author>
		<name>Jeff Moore-4</name>
	</author>
	<content type="html">&lt;br&gt;On Oct 14, 2009, at 6:14 PM, Paul M Jones wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; To repeat from earlier in this thread, the intended benefit of &amp;quot;empty &amp;nbsp;
&lt;br&gt;&amp;gt; record/collection&amp;quot; was to remove the need for the following idiom in &amp;nbsp;
&lt;br&gt;&amp;gt; records where you need to access a related object:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; // where 'foo' is a related record or collection ...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; if (! $this-&amp;gt;foo) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;foo = $this-&amp;gt;newRelated('foo');
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;Just for emphasis, this could be rewritten as
&lt;br&gt;&lt;br&gt;// If foos is not a collection, convert it to a collection so we can call methods on it
&lt;br&gt;if (!($record-&amp;gt;foos instanceof Solar_Sql_Model_Collection)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $record-&amp;gt;foos = $record-&amp;gt;getModel()-&amp;gt;newRelated('foos', $record-&amp;gt;foos);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;By all means, get rid of the need to do that.
&lt;br&gt;&lt;br&gt;However
&lt;br&gt;&lt;br&gt;// If there is no foo record, create one
&lt;br&gt;if (!$record-&amp;gt;foo) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $record-&amp;gt;foo = $record-&amp;gt;getModel()-&amp;gt;newRelated('foo');
&lt;br&gt;}
&lt;br&gt;$record-&amp;gt;save();
&lt;br&gt;&lt;br&gt;Is fine in my book.
&lt;br&gt;&lt;br&gt;Also, note that this only makes sense for hasOne relationships. &amp;nbsp;Because of the way that save cascades if you try to use this notation with a BelongsTo relationship, the record created doesn't save.
&lt;br&gt;&lt;br&gt;I just don't see this idiom as onerous for hasOne relationships and records and you'd never use it for BelongsTo.
&lt;br&gt;&lt;br&gt;Jeff
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26488376&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reviewing-the-Unfounded-branch-tp25690115p26488376.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26487931</id>
	<title>Re: how to run a background process with solar</title>
	<published>2009-11-23T15:21:06Z</published>
	<updated>2009-11-23T15:21:06Z</updated>
	<author>
		<name>Jeff Surgeson-3</name>
	</author>
	<content type="html">Thanks to all for the pointers and help, I am able to use my solar app without 
&lt;br&gt;modification, my script executes it periodicaly and saves to cache, my web 
&lt;br&gt;scripts then only load from cache, works like a charm. :D
&lt;br&gt;&lt;br&gt;I did the following::
&lt;br&gt;&lt;br&gt;1. set up crontab to run periodically
&lt;br&gt;2. created a solar bootstrap file php script for the cron job to run
&lt;br&gt;3. created minimal config file
&lt;br&gt;&lt;br&gt;// my bootstrap php script file
&lt;br&gt;$system = dirname(dirname(__FILE__));
&lt;br&gt;set_include_path(&amp;quot;$system/include&amp;quot;);
&lt;br&gt;require_once 'Solar.php';
&lt;br&gt;$config = &amp;quot;$system/config/Cron.config.php&amp;quot;;
&lt;br&gt;Solar::start($config);
&lt;br&gt;&lt;br&gt;$feeds = array(
&lt;br&gt;&amp;nbsp; &amp;nbsp;	'rss-cricket' 		=&amp;gt; '&lt;a href=&quot;http://www.supersport.com/rss/default.aspx?site=3'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.supersport.com/rss/default.aspx?site=3'&lt;/a&gt;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	'rss-cycling' 		=&amp;gt; '&lt;a href=&quot;http://www.supersport.com/rss/default.aspx?site=7'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.supersport.com/rss/default.aspx?site=7'&lt;/a&gt;,
&lt;br&gt;&amp;nbsp; &amp;nbsp;	'rss-motorsport' &amp;nbsp;	=&amp;gt; '&lt;a href=&quot;http://www.supersport.com/rss/default.aspx?site=6'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.supersport.com/rss/default.aspx?site=6'&lt;/a&gt;,
&lt;br&gt;);
&lt;br&gt;&lt;br&gt;foreach ($feeds as $area =&amp;gt; $url) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $rss = Solar::factory('Badger_Rss', $config = array(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	'cache_active' &amp;nbsp;	=&amp;gt; true,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	'cache_adapter' &amp;nbsp; &amp;nbsp; 	=&amp;gt; 'Solar_Cache_Adapter_File',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	'cache_life' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	=&amp;gt; 3600, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	'cache_prefix' &amp;nbsp;	=&amp;gt; 'RssCron',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	'content_area' &amp;nbsp;	=&amp;gt; $area,
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $rss-&amp;gt;load($url);
&lt;br&gt;}
&lt;br&gt;Solar::stop();
&lt;br&gt;&lt;br&gt;// my config file
&lt;br&gt;$config = array();
&lt;br&gt;$system = dirname(dirname(__FILE__));
&lt;br&gt;$config['Solar']['system'] &amp;nbsp;= $system;
&lt;br&gt;return $config;
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26487931&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-run-a-background-process-with-solar-tp26473471p26487931.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26487913</id>
	<title>Re: Reviewing the Unfounded branch</title>
	<published>2009-11-23T15:19:03Z</published>
	<updated>2009-11-23T15:19:03Z</updated>
	<author>
		<name>Jeff Moore-4</name>
	</author>
	<content type="html">&lt;br&gt;Picking up from a conversation of old...
&lt;br&gt;&lt;br&gt;On Oct 14, 2009, at 6:14 PM, Paul M Jones wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; To repeat from earlier in this thread, the intended benefit of &amp;quot;empty &amp;nbsp;
&lt;br&gt;&amp;gt; record/collection&amp;quot; was to remove the need for the following idiom in &amp;nbsp;
&lt;br&gt;&amp;gt; records where you need to access a related object:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; // where 'foo' is a related record or collection ...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; if (! $this-&amp;gt;foo) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;foo = $this-&amp;gt;newRelated('foo');
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; // ... now you can be sure that $this-&amp;gt;foo is actually there
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Every time you need the related 'foo', you need to check if it's &amp;nbsp;
&lt;br&gt;&amp;gt; really there or not. This is true for both records and collections.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; That is the idiom I very much want to get rid of. &amp;nbsp;It's really under &amp;nbsp;
&lt;br&gt;&amp;gt; my skin.
&lt;/div&gt;&lt;br&gt;I agree, having to convert representations is low value code.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; It struck me recently that the use case I'm talking about happens &amp;nbsp;
&lt;br&gt;&amp;gt; always and only within record objects.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What say if the &amp;quot;empty&amp;quot; objects are used *only* within a record; i.e., &amp;nbsp;
&lt;br&gt;&amp;gt; with related records and collections on a record object? &amp;nbsp;The idea &amp;nbsp;
&lt;br&gt;&amp;gt; would be that a normal fetch*() call returns null or array as before ...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; $item = $model-&amp;gt;foos-&amp;gt;fetchOne(); // null
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; $list = $model-&amp;gt;foos-&amp;gt;fetchAll(); // array()
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ... but *related* elements on a record get the &amp;quot;empty object&amp;quot; treatment:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; $item = $model-&amp;gt;foos-&amp;gt;fetchOne(); // a found record
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; $item-&amp;gt;bars; // an empty collection object
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; $item-&amp;gt;baz; // an empty record object
&lt;/div&gt;&lt;br&gt;I'm ok with doing this for collections, but not for records. 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; if (! $this-&amp;gt;foos) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;foos = $this-&amp;gt;newRelated('foos');
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;for a collection this is just a simple conversion between empty array and empty collection. &amp;nbsp;You could freely convert back and forth between the two. &amp;nbsp;The only reason to prefer the collection is to be able to make method calls on the collection. &amp;nbsp;Note, this works in trunk today.
&lt;br&gt;&lt;br&gt;I could just as easily do this:
&lt;br&gt;&lt;br&gt;if (count($this-&amp;gt;foos) == 0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; $this-&amp;gt;foos = array();
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;To go in the opposite direction.
&lt;br&gt;&lt;br&gt;Now lets say that I execute this code in trunk today on a toMany relationship:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; if (! $this-&amp;gt;foos) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;foos = $this-&amp;gt;newRelated('foos');
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;Any down stream code MUST be prepared to deal with the fact that there is an empty collection representing the relationship. &amp;nbsp;any code that does not prepare for the possibility that $record-&amp;gt;foo can be an empty collection instead of an empty array is probably buggy.
&lt;br&gt;&lt;br&gt;Thus, changing from array() to empty collection as the default representation for empty for toMany relationships is a relatively minor change. &amp;nbsp;Any bugs are not new bugs introduced, they are existing bugs revealed.
&lt;br&gt;&lt;br&gt;This is NOT the case on the record side. &amp;nbsp;There is no concept of an empty record in trunk. &amp;nbsp;That is completely new. &amp;nbsp;for a toOne relationship this code is not a simple representational conversion:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; if (! $this-&amp;gt;foo) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;foo = $this-&amp;gt;newRelated('foo');
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;Although the notation is the same, the outcome is different, creating a new record instead of converting between equivelent representations.
&lt;br&gt;&lt;br&gt;I think the problem is that the newRelated function has two different outcomes, two different return values, record or collection. &amp;nbsp;
&lt;br&gt;&lt;br&gt;newRelated is really a shortcut for
&lt;br&gt;&lt;br&gt;$model-&amp;gt;getRelated('foos')-&amp;gt;getModel()-&amp;gt;newCollection();
&lt;br&gt;&lt;br&gt;or
&lt;br&gt;&lt;br&gt;$model-&amp;gt;getRelated('foo')-&amp;gt;getModel()-&amp;gt;fetchNew();
&lt;br&gt;&lt;br&gt;So, making relationships always have collections would eliminate the need for the first form.
&lt;br&gt;&lt;br&gt;As far as the second form, I don't find it a problem at all to say fetchNew when you mean to create a new record.
&lt;br&gt;&lt;br&gt;I've stated before all my objections to empty record. &amp;nbsp;I don't see anything in this proposal that changes that.
&lt;br&gt;&lt;br&gt;So, no different than my last opinion. &amp;nbsp;:)
&lt;br&gt;&lt;br&gt;Jeff
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26487913&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reviewing-the-Unfounded-branch-tp25690115p26487913.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26485691</id>
	<title>Re: how to run a background process with solar</title>
	<published>2009-11-23T12:58:34Z</published>
	<updated>2009-11-23T12:58:34Z</updated>
	<author>
		<name>Jeff Surgeson-3</name>
	</author>
	<content type="html">&amp;gt; I started the background process like this:
&lt;br&gt;&amp;gt; exec(PATH_TO_PHP . &amp;quot; script.php $param &amp;gt; /dev/null 2&amp;gt;&amp;1 &amp;&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;gt; Mayhaps some of this will be useful to you, if not feel free to disregard
&lt;br&gt;&amp;gt; &amp;nbsp;:D
&lt;br&gt;&lt;br&gt;Hay yes thank you, exactly what I needed to see, your are a scholar &amp; 
&lt;br&gt;gentleman :-) 
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485691&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-run-a-background-process-with-solar-tp26473471p26485691.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26485549</id>
	<title>Re: how to run a background process with solar</title>
	<published>2009-11-23T12:40:32Z</published>
	<updated>2009-11-23T12:40:32Z</updated>
	<author>
		<name>Anthony Gentile</name>
	</author>
	<content type="html">I did something similar for a project where I was analyzing a lot of files(which I wanted to do in the background) and show an ajaxy progress meter. This background script would analyze the files and print a result to a log file, then from the parent script (which wasnt waiting for the child) it would just read a log file every so many seconds (ajax call) and update the meter and info it was displaying.&lt;br&gt;

&lt;br&gt;I started the background process like this:&lt;br&gt;exec(PATH_TO_PHP . &amp;quot; script.php $param &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&amp;quot;);&lt;br&gt;&lt;br&gt;now in the script.php I needed to use solar to do some magic and run some logic I had in controllers, to do this I did something like this:&lt;br&gt;

&lt;br&gt;        $system = dirname(dirname(dirname(__FILE__))); // i house the script.php in my vendor/script folder&lt;br&gt;        set_include_path(&amp;quot;$system/include&amp;quot;);&lt;br&gt;&lt;br&gt;        $solar_config = include &amp;quot;$system/config/Solar.config.php&amp;quot;;&lt;br&gt;

        require &amp;#39;Solar.php&amp;#39;;&lt;br&gt;        Solar::start($solar_config);&lt;br&gt;&lt;br&gt;        $this-&amp;gt;_model = Solar_Registry::get(&amp;#39;model_catalog&amp;#39;);&lt;br&gt;        session_id(&amp;#39;batch_process&amp;#39;);&lt;br&gt;&lt;br&gt;        foreach ($this-&amp;gt;files as $file) {&lt;br&gt;

            $this-&amp;gt;processFile($file);&lt;br&gt;        }&lt;br&gt;&lt;br&gt;        Solar::stop();&lt;br&gt;&lt;br&gt;-----&lt;br&gt;Mayhaps some of this will be useful to you, if not feel free to disregard :D&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;Anthony Gentile&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 23, 2009 at 2:21 PM, Jon Elofson &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485549&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jon.elofson@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

Could you just create a separate bootstrap file that uses a separate&lt;br&gt;
config file and call that from the command line?&lt;br&gt;
&lt;br&gt;
$ php /path/to/index-test.php&lt;br&gt;
&lt;br&gt;
Your config could specify the vendor and default app to run, cache params etc.&lt;br&gt;
&lt;br&gt;
I haven&amp;#39;t tested that but maybe it would work.&lt;br&gt;
&lt;br&gt;
Jon&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
On 11/23/09, Jeff Surgeson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485549&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeff@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; Are there any pointers anyone can give with regards running a&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; background  process, cron job etc, when using solar.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; Any pointers would be appreciated.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; My first thought is to extract the cache-building logic to its own&lt;br&gt;
&amp;gt;&amp;gt; class.  Your Solar_App would call that class to do the heavy lifting.&lt;br&gt;
&amp;gt;&amp;gt; Then you can write a minimal Solar_Cli comman (or even a standalone&lt;br&gt;
&amp;gt;&amp;gt; PHP script) to use that external cache-building class, and a cron job&lt;br&gt;
&amp;gt;&amp;gt; can invoke the command or standalone script.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Does that help?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; It does. food for thought at least, still not sure how to go about it, but&lt;br&gt;
&amp;gt; will try a few things and then repost for comment.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks!&lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; Solar-talk mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485549&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
Sent from my mobile device&lt;br&gt;
&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;_______________________________________________&lt;br&gt;
Solar-talk mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485549&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485549&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-run-a-background-process-with-solar-tp26473471p26485549.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26485390</id>
	<title>Re: Reviewing Remodel Branch</title>
	<published>2009-11-23T12:38:14Z</published>
	<updated>2009-11-23T12:38:14Z</updated>
	<author>
		<name>Paul M Jones-4</name>
	</author>
	<content type="html">On Nov 23, 2009, at 14:15 , Jeff Moore wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Thanks for your work in incorporating feedback, btw.
&lt;br&gt;&lt;br&gt;Dude, you are totally welcome. &amp;nbsp;I know I don't have all the best &amp;nbsp;
&lt;br&gt;ideas. &amp;nbsp;Gotta have you guys to keep me honest. &amp;nbsp;:-)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Paul M. Jones
&lt;br&gt;&lt;a href=&quot;http://paul-m-jones.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://paul-m-jones.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485390&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reviewing-Remodel-Branch-tp25777108p26485390.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26485361</id>
	<title>Re: how to run a background process with solar</title>
	<published>2009-11-23T12:37:13Z</published>
	<updated>2009-11-23T12:37:13Z</updated>
	<author>
		<name>Jeff Surgeson-3</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; Could you just create a separate bootstrap file that uses a separate
&lt;br&gt;&amp;gt; config file and call that from the command line?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $ php /path/to/index-test.php
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Your config could specify the vendor and default app to run, cache params
&lt;br&gt;&amp;gt; &amp;nbsp;etc.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I haven't tested that but maybe it would work.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Jon
&lt;/div&gt;&lt;br&gt;Sounds like what I am trying to do, trying to put together a single solar file 
&lt;br&gt;that sets up a solar env and allows me to run my vendor app, that I can &amp;nbsp;
&lt;br&gt;execute by running a cron job.
&lt;br&gt;Never played with cli stuff other than make_vendor etc, so trying to hack out 
&lt;br&gt;something from Solar_Cli
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485361&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-run-a-background-process-with-solar-tp26473471p26485361.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26485154</id>
	<title>Re: how to run a background process with solar</title>
	<published>2009-11-23T12:21:16Z</published>
	<updated>2009-11-23T12:21:16Z</updated>
	<author>
		<name>Jon Elofson</name>
	</author>
	<content type="html">Could you just create a separate bootstrap file that uses a separate
&lt;br&gt;config file and call that from the command line?
&lt;br&gt;&lt;br&gt;$ php /path/to/index-test.php
&lt;br&gt;&lt;br&gt;Your config could specify the vendor and default app to run, cache params etc.
&lt;br&gt;&lt;br&gt;I haven't tested that but maybe it would work.
&lt;br&gt;&lt;br&gt;Jon
&lt;br&gt;&lt;br&gt;On 11/23/09, Jeff Surgeson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485154&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeff@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Are there any pointers anyone can give with regards running a
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; background &amp;nbsp;process, cron job etc, when using solar.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Any pointers would be appreciated.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; My first thought is to extract the cache-building logic to its own
&lt;br&gt;&amp;gt;&amp;gt; class. &amp;nbsp;Your Solar_App would call that class to do the heavy lifting.
&lt;br&gt;&amp;gt;&amp;gt; Then you can write a minimal Solar_Cli comman (or even a standalone
&lt;br&gt;&amp;gt;&amp;gt; PHP script) to use that external cache-building class, and a cron job
&lt;br&gt;&amp;gt;&amp;gt; can invoke the command or standalone script.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Does that help?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It does. food for thought at least, still not sure how to go about it, but
&lt;br&gt;&amp;gt; will try a few things and then repost for comment.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks!
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Solar-talk mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485154&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Sent from my mobile device
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485154&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-run-a-background-process-with-solar-tp26473471p26485154.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26485071</id>
	<title>Re: Reviewing Remodel Branch</title>
	<published>2009-11-23T12:15:24Z</published>
	<updated>2009-11-23T12:15:24Z</updated>
	<author>
		<name>Jeff Moore-4</name>
	</author>
	<content type="html">Thanks for your work in incorporating feedback, btw.
&lt;br&gt;&lt;br&gt;Jeff
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485071&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reviewing-Remodel-Branch-tp25777108p26485071.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26485045</id>
	<title>Re: Reviewing Remodel Branch</title>
	<published>2009-11-23T12:14:07Z</published>
	<updated>2009-11-23T12:14:07Z</updated>
	<author>
		<name>Jeff Moore-4</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 23, 2009, at 8:48 AM, Paul M Jones wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Oct 12, 2009, at 18:59 , Jeff Moore wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Hi Paul,
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; On Oct 10, 2009, at 9:23 AM, Paul M Jones wrote:
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Good call, and I fully agree. &amp;nbsp;To sum up:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; - The $where property of Solar_Sql_Model_Related is renamed to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; $join_cond
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; - The relationship definition key for 'where' is also renamed to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 'join_cond'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; - The 'join_cond' value in the relationship definition is always &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; added
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; to the JOIN conditions, not the WHERE conditions
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Does that sound right?
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Sounds perfect to me.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sounded perfect to me too. &amp;nbsp;Turns out it was at least partially &amp;nbsp;
&lt;br&gt;&amp;gt; wrong. &amp;nbsp;The relationship-definition conditions go in the JOIN clause &amp;nbsp;
&lt;br&gt;&amp;gt; sometimes, and in the WHERE clause sometimes. &amp;nbsp;For example:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; - eager to-one: JOIN
&lt;br&gt;&amp;gt; - eager has-many: WHERE (because we fetch the eager after the native)
&lt;br&gt;&amp;gt; - eager has-many-through: the &amp;quot;through&amp;quot; conditions always go in the join
&lt;br&gt;&amp;gt; - eager has-many join_flag: JOIN for the join, then WHERE for the fetch
&lt;br&gt;&amp;gt; - lazy-load: WHERE
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Cf. the new work in branches/beta, including the tests (!!!) in &amp;nbsp;
&lt;br&gt;&amp;gt; Test_Solar_Sql_Related and the corresponding mock models in &amp;nbsp;
&lt;br&gt;&amp;gt; Mock_Solar_Model.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So a simple &amp;quot;always and only use in the JOIN&amp;quot; isn't sufficient. &amp;nbsp;I'm &amp;nbsp;
&lt;br&gt;&amp;gt; considering renaming from &amp;quot;where&amp;quot; to &amp;quot;conditions&amp;quot; (instead of to &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;quot;join_cond&amp;quot;) to hint toward that.
&lt;/div&gt;&lt;br&gt;Yeah, that sounds good. &amp;nbsp;There can't be a direct mapping of object to sql concepts and still provide consistency. &amp;nbsp;There is already too much juggling of queries. &amp;nbsp;Fragments must be placed at the right location to maintain consistency. &amp;nbsp;If the fragment is over-specified (under-abstracted) in the relationship definition or query definition, then the internals cannot do the right thing.
&lt;br&gt;&lt;br&gt;On the other hand, if the query definition and relationship definition only allow very abstract concepts, there are queries you cannot do that you might want to do. &amp;nbsp;As we've discussed, I think the way out of this conundrum is to break apart the query building stage from the result processing stage and use a mapping description passed from the first stage to the second. &amp;nbsp;That way, each stage can evolve to support what is necessary.
&lt;br&gt;&lt;br&gt;I feel as long as they are coupled, there will be issues balancing back and forth between the need to represent a broad array of queries and the need to present a stable model for the purposes of writing domain logic on that model.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; I don't think there is any reasonable need to support the LEFT JOIN
&lt;br&gt;&amp;gt;&amp;gt; case in the relationship definition.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It looks like LEFT JOIN has to be the default join type, to make sure &amp;nbsp;
&lt;br&gt;&amp;gt; that parent record sets are always the same regardless of eagers. &amp;nbsp; 
&lt;br&gt;&amp;gt; Using &amp;quot;inner join&amp;quot; with &amp;quot;0=1&amp;quot; conditions, as noted in ticket &amp;nbsp;208 &amp;lt;&lt;a href=&quot;https://solarphp.com/trac/core/ticket/208&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://solarphp.com/trac/core/ticket/208&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; , changes the native result set, which conflicts with the goal of &amp;nbsp;
&lt;br&gt;&amp;gt; keeping native result sets the same regardless of eagers. &amp;nbsp;Let me know &amp;nbsp;
&lt;br&gt;&amp;gt; if I'm missing something here.
&lt;br&gt;&lt;br&gt;I think all i meant was that it wasn't necessary to have the option. &amp;nbsp;Internally, the query builder can choose as appropriate for the situation.
&lt;br&gt;&lt;br&gt;&amp;gt; The only issue, then is supporting it on eager options. &amp;nbsp;I think as
&lt;br&gt;&amp;gt;&amp;gt; long as the modEagerFetch method gets added with both the fetch and
&lt;br&gt;&amp;gt;&amp;gt; eager options parameters, then I don't see any need for where in the
&lt;br&gt;&amp;gt;&amp;gt; eager options, only join_cond.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; That's another place where the conditions end up going in different &amp;nbsp;
&lt;br&gt;&amp;gt; places depending on the operation. &amp;nbsp;If the &amp;quot;where&amp;quot; in the relationship &amp;nbsp;
&lt;br&gt;&amp;gt; definition gets renamed to &amp;quot;conditions&amp;quot;, then it would make sense to &amp;nbsp;
&lt;br&gt;&amp;gt; call the eager key &amp;quot;conditions&amp;quot; as well.
&lt;br&gt;&lt;br&gt;ok.
&lt;br&gt;&lt;br&gt;These are just initial impressions without having run our standard set of problem queries and relationships. &amp;nbsp;(soft-delete, area restriction, large datasets, etc.)
&lt;br&gt;&lt;br&gt;Jeff
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26485045&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reviewing-Remodel-Branch-tp25777108p26485045.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26482522</id>
	<title>Re: how to run a background process with solar</title>
	<published>2009-11-23T09:30:29Z</published>
	<updated>2009-11-23T09:30:29Z</updated>
	<author>
		<name>Jeff Surgeson-3</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; &amp;gt; Are there any pointers anyone can give with regards running a
&lt;br&gt;&amp;gt; &amp;gt; background &amp;nbsp;process, cron job etc, when using solar.
&lt;br&gt;&amp;gt; &amp;gt; Any pointers would be appreciated.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; My first thought is to extract the cache-building logic to its own
&lt;br&gt;&amp;gt; class. &amp;nbsp;Your Solar_App would call that class to do the heavy lifting.
&lt;br&gt;&amp;gt; Then you can write a minimal Solar_Cli comman (or even a standalone
&lt;br&gt;&amp;gt; PHP script) to use that external cache-building class, and a cron job
&lt;br&gt;&amp;gt; can invoke the command or standalone script.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Does that help?
&lt;/div&gt;&lt;br&gt;It does. food for thought at least, still not sure how to go about it, but 
&lt;br&gt;will try a few things and then repost for comment.
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482522&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-run-a-background-process-with-solar-tp26473471p26482522.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26482278</id>
	<title>Re: Pruning beta/nullrec and beta/unfounded</title>
	<published>2009-11-23T09:17:53Z</published>
	<updated>2009-11-23T09:17:53Z</updated>
	<author>
		<name>Paul M Jones-4</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 23, 2009, at 11:05 , Paul M Jones wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm preparing to delete the beta/nullrec and beta/unfounded model-
&lt;br&gt;&amp;gt; experimentation branches. &amp;nbsp;I am not going to port their behaviors back
&lt;br&gt;&amp;gt; to beta or trunk at this time, seeing as they met with mostly negative
&lt;br&gt;&amp;gt; feedback. &amp;nbsp;(The Collection::isEmpty() method might be an exception
&lt;br&gt;&amp;gt; here, since everyone seemed to like that OK, but it would be that
&lt;br&gt;&amp;gt; method itself, not the behavior in relation to fetching empty
&lt;br&gt;&amp;gt; collections.)
&lt;br&gt;&lt;br&gt;&lt;br&gt;The beta-nullrec branch is now gone, but it looks like there are some &amp;nbsp;
&lt;br&gt;other things in beta-unfounded that are useful, e.g. &amp;nbsp;
&lt;br&gt;Solar_Struct_Iterator. &amp;nbsp;I'll take a closer look and report further &amp;nbsp;
&lt;br&gt;before I kill off beta-unfounded.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Paul M. Jones
&lt;br&gt;&lt;a href=&quot;http://paul-m-jones.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://paul-m-jones.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482278&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Pruning-beta-nullrec-and-beta-unfounded-tp26482098p26482278.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26482098</id>
	<title>Pruning beta/nullrec and beta/unfounded</title>
	<published>2009-11-23T09:05:58Z</published>
	<updated>2009-11-23T09:05:58Z</updated>
	<author>
		<name>Paul M Jones-4</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I'm preparing to delete the beta/nullrec and beta/unfounded model- 
&lt;br&gt;experimentation branches. &amp;nbsp;I am not going to port their behaviors back &amp;nbsp;
&lt;br&gt;to beta or trunk at this time, seeing as they met with mostly negative &amp;nbsp;
&lt;br&gt;feedback. &amp;nbsp;(The Collection::isEmpty() method might be an exception &amp;nbsp;
&lt;br&gt;here, since everyone seemed to like that OK, but it would be that &amp;nbsp;
&lt;br&gt;method itself, not the behavior in relation to fetching empty &amp;nbsp;
&lt;br&gt;collections.)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Paul M. Jones
&lt;br&gt;&lt;a href=&quot;http://paul-m-jones.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://paul-m-jones.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482098&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Pruning-beta-nullrec-and-beta-unfounded-tp26482098p26482098.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26481790</id>
	<title>Re: Reviewing Remodel Branch</title>
	<published>2009-11-23T08:48:34Z</published>
	<updated>2009-11-23T08:48:34Z</updated>
	<author>
		<name>Paul M Jones-4</name>
	</author>
	<content type="html">On Oct 12, 2009, at 18:59 , Jeff Moore wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Paul,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Oct 10, 2009, at 9:23 AM, Paul M Jones wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Good call, and I fully agree. &amp;nbsp;To sum up:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; - The $where property of Solar_Sql_Model_Related is renamed to
&lt;br&gt;&amp;gt;&amp;gt; $join_cond
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; - The relationship definition key for 'where' is also renamed to
&lt;br&gt;&amp;gt;&amp;gt; 'join_cond'
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; - The 'join_cond' value in the relationship definition is always &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; added
&lt;br&gt;&amp;gt;&amp;gt; to the JOIN conditions, not the WHERE conditions
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Does that sound right?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sounds perfect to me.
&lt;/div&gt;&lt;br&gt;Sounded perfect to me too. &amp;nbsp;Turns out it was at least partially &amp;nbsp;
&lt;br&gt;wrong. &amp;nbsp;The relationship-definition conditions go in the JOIN clause &amp;nbsp;
&lt;br&gt;sometimes, and in the WHERE clause sometimes. &amp;nbsp;For example:
&lt;br&gt;&lt;br&gt;- eager to-one: JOIN
&lt;br&gt;- eager has-many: WHERE (because we fetch the eager after the native)
&lt;br&gt;- eager has-many-through: the &amp;quot;through&amp;quot; conditions always go in the join
&lt;br&gt;- eager has-many join_flag: JOIN for the join, then WHERE for the fetch
&lt;br&gt;- lazy-load: WHERE
&lt;br&gt;&lt;br&gt;Cf. the new work in branches/beta, including the tests (!!!) in &amp;nbsp;
&lt;br&gt;Test_Solar_Sql_Related and the corresponding mock models in &amp;nbsp;
&lt;br&gt;Mock_Solar_Model.
&lt;br&gt;&lt;br&gt;So a simple &amp;quot;always and only use in the JOIN&amp;quot; isn't sufficient. &amp;nbsp;I'm &amp;nbsp;
&lt;br&gt;considering renaming from &amp;quot;where&amp;quot; to &amp;quot;conditions&amp;quot; (instead of to &amp;nbsp;
&lt;br&gt;&amp;quot;join_cond&amp;quot;) to hint toward that.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; I don't think there is any reasonable need to support the LEFT JOIN
&lt;br&gt;&amp;gt; case in the relationship definition.
&lt;br&gt;&lt;br&gt;It looks like LEFT JOIN has to be the default join type, to make sure &amp;nbsp;
&lt;br&gt;that parent record sets are always the same regardless of eagers. &amp;nbsp; 
&lt;br&gt;Using &amp;quot;inner join&amp;quot; with &amp;quot;0=1&amp;quot; conditions, as noted in ticket &amp;nbsp;208 &amp;lt;&lt;a href=&quot;https://solarphp.com/trac/core/ticket/208&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://solarphp.com/trac/core/ticket/208&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;gt;, changes the native result set, which conflicts with the goal of &amp;nbsp;
&lt;br&gt;keeping native result sets the same regardless of eagers. &amp;nbsp;Let me know &amp;nbsp;
&lt;br&gt;if I'm missing something here.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; The only issue, then is supporting it on eager options. &amp;nbsp;I think as
&lt;br&gt;&amp;gt; long as the modEagerFetch method gets added with both the fetch and
&lt;br&gt;&amp;gt; eager options parameters, then I don't see any need for where in the
&lt;br&gt;&amp;gt; eager options, only join_cond.
&lt;br&gt;&lt;br&gt;That's another place where the conditions end up going in different &amp;nbsp;
&lt;br&gt;places depending on the operation. &amp;nbsp;If the &amp;quot;where&amp;quot; in the relationship &amp;nbsp;
&lt;br&gt;definition gets renamed to &amp;quot;conditions&amp;quot;, then it would make sense to &amp;nbsp;
&lt;br&gt;call the eager key &amp;quot;conditions&amp;quot; as well.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Paul M. Jones
&lt;br&gt;&lt;a href=&quot;http://paul-m-jones.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://paul-m-jones.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26481790&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reviewing-Remodel-Branch-tp25777108p26481790.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26480577</id>
	<title>Re: how to run a background process with solar</title>
	<published>2009-11-23T07:48:25Z</published>
	<updated>2009-11-23T07:48:25Z</updated>
	<author>
		<name>Paul M Jones-4</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 23, 2009, at 00:55 , Jeff Surgeson wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi All
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Are there any pointers anyone can give with regards running a &amp;nbsp;
&lt;br&gt;&amp;gt; background
&lt;br&gt;&amp;gt; process, cron job etc, when using solar.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Are there any do's or dont's, best way to handle etc.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have already written a Solar_App that fetches multiple rss remote &amp;nbsp;
&lt;br&gt;&amp;gt; files,
&lt;br&gt;&amp;gt; saves to Solar_Cache, first checks cache files for timestamp/expiry &amp;nbsp;
&lt;br&gt;&amp;gt; etc before
&lt;br&gt;&amp;gt; fetching, renames the files, and does other stuff to make it &amp;nbsp;
&lt;br&gt;&amp;gt; suitable for
&lt;br&gt;&amp;gt; website use. I have the cache working so that these locally saved &amp;nbsp;
&lt;br&gt;&amp;gt; files are
&lt;br&gt;&amp;gt; available to any website on my server. Unfortunately the website &amp;nbsp;
&lt;br&gt;&amp;gt; that ends up
&lt;br&gt;&amp;gt; fetching these files when they expire, suffers as the process can &amp;nbsp;
&lt;br&gt;&amp;gt; take a while
&lt;br&gt;&amp;gt; depending on remote server conditions etc.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I thought it pointless to re-write a cli script to redo all of this, &amp;nbsp;
&lt;br&gt;&amp;gt; and was
&lt;br&gt;&amp;gt; wondering best way to handle this?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any pointers would be appreciated.
&lt;/div&gt;&lt;br&gt;&lt;br&gt;My first thought is to extract the cache-building logic to its own &amp;nbsp;
&lt;br&gt;class. &amp;nbsp;Your Solar_App would call that class to do the heavy lifting. &amp;nbsp; 
&lt;br&gt;Then you can write a minimal Solar_Cli comman (or even a standalone &amp;nbsp;
&lt;br&gt;PHP script) to use that external cache-building class, and a cron job &amp;nbsp;
&lt;br&gt;can invoke the command or standalone script.
&lt;br&gt;&lt;br&gt;Does that help?
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Paul M. Jones
&lt;br&gt;&lt;a href=&quot;http://paul-m-jones.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://paul-m-jones.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480577&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-run-a-background-process-with-solar-tp26473471p26480577.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26473571</id>
	<title>Re: how to run a background process with solar</title>
	<published>2009-11-22T23:11:47Z</published>
	<updated>2009-11-22T23:11:47Z</updated>
	<author>
		<name>Richard Thomas-9</name>
	</author>
	<content type="html">Take a look at Solar_Cli a lot of helpers there with command line input and such, otherwise watch out for overlapping crons and memory leaks..
&lt;br&gt;&lt;br&gt;Richard Thomas
&lt;br&gt;&lt;a href=&quot;http://www.cyberlot.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cyberlot.net&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Nov 22, 2009, at 10:55 PM, Jeff Surgeson wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi All
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Are there any pointers anyone can give with regards running a background 
&lt;br&gt;&amp;gt; process, cron job etc, when using solar.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Are there any do's or dont's, best way to handle etc.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have already written a Solar_App that fetches multiple rss remote files, 
&lt;br&gt;&amp;gt; saves to Solar_Cache, first checks cache files for timestamp/expiry etc before 
&lt;br&gt;&amp;gt; fetching, renames the files, and does other stuff to make it suitable for 
&lt;br&gt;&amp;gt; website use. I have the cache working so that these locally saved files are 
&lt;br&gt;&amp;gt; available to any website on my server. Unfortunately the website that ends up 
&lt;br&gt;&amp;gt; fetching these files when they expire, suffers as the process can take a while 
&lt;br&gt;&amp;gt; depending on remote server conditions etc.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I thought it pointless to re-write a cli script to redo all of this, and was 
&lt;br&gt;&amp;gt; wondering best way to handle this?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Any pointers would be appreciated.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Jeff Surgeson
&lt;br&gt;&amp;gt; South Africa
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Solar-talk mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473571&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473571&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-run-a-background-process-with-solar-tp26473471p26473571.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26473471</id>
	<title>how to run a background process with solar</title>
	<published>2009-11-22T22:54:48Z</published>
	<updated>2009-11-22T22:54:48Z</updated>
	<author>
		<name>Jeff Surgeson-3</name>
	</author>
	<content type="html">Hi All
&lt;br&gt;&lt;br&gt;Are there any pointers anyone can give with regards running a background 
&lt;br&gt;process, cron job etc, when using solar.
&lt;br&gt;&lt;br&gt;Are there any do's or dont's, best way to handle etc.
&lt;br&gt;&lt;br&gt;I have already written a Solar_App that fetches multiple rss remote files, 
&lt;br&gt;saves to Solar_Cache, first checks cache files for timestamp/expiry etc before 
&lt;br&gt;fetching, renames the files, and does other stuff to make it suitable for 
&lt;br&gt;website use. I have the cache working so that these locally saved files are 
&lt;br&gt;available to any website on my server. Unfortunately the website that ends up 
&lt;br&gt;fetching these files when they expire, suffers as the process can take a while 
&lt;br&gt;depending on remote server conditions etc.
&lt;br&gt;&lt;br&gt;I thought it pointless to re-write a cli script to redo all of this, and was 
&lt;br&gt;wondering best way to handle this?
&lt;br&gt;&lt;br&gt;Any pointers would be appreciated.
&lt;br&gt;&lt;br&gt;Jeff Surgeson
&lt;br&gt;South Africa
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473471&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-run-a-background-process-with-solar-tp26473471p26473471.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26434480</id>
	<title>Re: CamelCased Models (with latestsvn) does not work</title>
	<published>2009-11-19T13:33:20Z</published>
	<updated>2009-11-19T13:33:20Z</updated>
	<author>
		<name>Kilbride, James P.</name>
	</author>
	<content type="html">I thought that was ON the coconut trees, I still hold that being 'in' the
&lt;br&gt;tree is difficult on a tree that has no branches. Of course when I think
&lt;br&gt;Africa I think Algeria or Timbuktu. Didn't see too many coconut trees when I
&lt;br&gt;was in Algeria or from the pictures of my grandfather/brothers trip out to
&lt;br&gt;Timbuktu.
&lt;br&gt;&lt;br&gt;James Kilbride
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Jeff Surgeson [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26434480&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeff@...&lt;/a&gt;] 
&lt;br&gt;Sent: Thursday, November 19, 2009 1:27 PM
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26434480&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solar-talk@...&lt;/a&gt;
&lt;br&gt;Cc: Kilbride, James P.
&lt;br&gt;Subject: Re: [Solar-talk] CamelCased Models (with latestsvn) does not work
&lt;br&gt;&lt;br&gt;&amp;gt; How exactly does one get 'in' a coconut tree in order to throw yourself
&lt;br&gt;out
&lt;br&gt;&amp;gt; of one?
&lt;br&gt;&lt;br&gt;&amp;quot;TIA&amp;quot; 
&lt;br&gt;&lt;br&gt;This is Africa, we spend most of our time in coconut trees, don't you watch 
&lt;br&gt;National Geographic?
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26434480&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;smime.p7s&lt;/strong&gt; (3K) &lt;a href=&quot;http://old.nabble.com/attachment/26434480/0/smime.p7s&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CamelCased-Models-%28with-latestsvn%29-does-not-work-tp26424134p26434480.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26431496</id>
	<title>Re: CamelCased Models (with latestsvn) does not work</title>
	<published>2009-11-19T10:27:06Z</published>
	<updated>2009-11-19T10:27:06Z</updated>
	<author>
		<name>Jeff Surgeson-3</name>
	</author>
	<content type="html">&amp;gt; How exactly does one get 'in' a coconut tree in order to throw yourself out
&lt;br&gt;&amp;gt; of one?
&lt;br&gt;&lt;br&gt;&amp;quot;TIA&amp;quot; 
&lt;br&gt;&lt;br&gt;This is Africa, we spend most of our time in coconut trees, don't you watch 
&lt;br&gt;National Geographic?
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26431496&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CamelCased-Models-%28with-latestsvn%29-does-not-work-tp26424134p26431496.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26431409</id>
	<title>Re: CamelCased Models (with latestsvn) does not work</title>
	<published>2009-11-19T10:22:45Z</published>
	<updated>2009-11-19T10:22:45Z</updated>
	<author>
		<name>Jeff Surgeson-3</name>
	</author>
	<content type="html">&amp;gt; Ok here's my result
&lt;br&gt;&amp;gt; Create the model app with --model-name=gallery_cat
&lt;br&gt;&amp;gt; Everything seems ok to me.
&lt;br&gt;&amp;gt; Paul's tip about --model-name=gallery_cat should help.
&lt;br&gt;&amp;gt; Jon
&lt;br&gt;&lt;br&gt;Jon thanks for taking the time to do that, even it was just to confirm I am in 
&lt;br&gt;fact nuts.
&lt;br&gt;&lt;br&gt;Paul sorry for casting doubt, should know different by now after 5 years or 
&lt;br&gt;more of using your code.
&lt;br&gt;&lt;br&gt;Jeff
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26431409&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CamelCased-Models-%28with-latestsvn%29-does-not-work-tp26424134p26431409.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26430774</id>
	<title>Re: CamelCased Models (with latestsvn) does not work</title>
	<published>2009-11-19T09:41:38Z</published>
	<updated>2009-11-19T09:41:38Z</updated>
	<author>
		<name>Kilbride, James P.</name>
	</author>
	<content type="html">How exactly does one get 'in' a coconut tree in order to throw yourself out
&lt;br&gt;of one? 
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26430774&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solar-talk-bounces@...&lt;/a&gt;
&lt;br&gt;[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26430774&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solar-talk-bounces@...&lt;/a&gt;] On Behalf Of Jeff Surgeson
&lt;br&gt;Sent: Thursday, November 19, 2009 10:56 AM
&lt;br&gt;To: Paul M Jones
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26430774&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solar-talk@...&lt;/a&gt;
&lt;br&gt;Subject: Re: [Solar-talk] CamelCased Models (with latestsvn) does not work
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt; ./script/solar make-app Yak_App_GalleryCat --model-name=GalleryCat
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Try `--model-name=gallery_cat`. &amp;nbsp;Studly caps (&amp;quot;FooBar&amp;quot;) in classes are
&lt;br&gt;&amp;gt; translated to lower-case-underscores (&amp;quot;foo_bar&amp;quot;) in model names.
&lt;br&gt;&lt;br&gt;Quick try, seems to do the trick, will apply to a complete app, but I am
&lt;br&gt;sure 
&lt;br&gt;it will be fine.
&lt;br&gt;&lt;br&gt;The only change it made was to set up $this-&amp;gt;model_name = 'gallery_cat';
&lt;br&gt;&lt;br&gt;So I am nuts :( I cant believe after playing for 2 days I did not try that, 
&lt;br&gt;well I am off to throw myself out of a coconut tree.
&lt;br&gt;&lt;br&gt;Paul drop for 50 &amp;nbsp;- :D
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26430774&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26430774&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;smime.p7s&lt;/strong&gt; (3K) &lt;a href=&quot;http://old.nabble.com/attachment/26430774/0/smime.p7s&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CamelCased-Models-%28with-latestsvn%29-does-not-work-tp26424134p26430774.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26429115</id>
	<title>Re: CamelCased Models (with latestsvn) does not work</title>
	<published>2009-11-19T08:13:35Z</published>
	<updated>2009-11-19T08:13:35Z</updated>
	<author>
		<name>Jon Elofson</name>
	</author>
	<content type="html">Ok here's my result
&lt;br&gt;&lt;br&gt;Svn checkout of solar system which includes core as svn external
&lt;br&gt;&lt;br&gt;Set up apache to find it using an alias
&lt;br&gt;Edit .htaccess a bit
&lt;br&gt;Create the gallery cat table in mysql
&lt;br&gt;Create the yak vendor
&lt;br&gt;Create Yak_Model_GalleryCat (get error about table_cols so run again. No error)
&lt;br&gt;&lt;br&gt;Create the model app with --model-name=gallery_cat
&lt;br&gt;&lt;br&gt;Edit Solar.config.php to use mysql and set the model catalog and
&lt;br&gt;controller front to use Yak
&lt;br&gt;&lt;br&gt;Browse to gallery-cat and add a record. Works.
&lt;br&gt;Edit works
&lt;br&gt;Delete works
&lt;br&gt;&lt;br&gt;Everything seems ok to me.
&lt;br&gt;Paul's tip about --model-name=gallery_cat should help.
&lt;br&gt;&lt;br&gt;Jon
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On 11/19/09, Paul M Jones &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26429115&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pmjones@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 19, 2009, at 04:48 , Jeff Surgeson wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ./script/solar make-app Yak_App_GalleryCat --model-name=GalleryCat
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Try `--model-name=gallery_cat`. &amp;nbsp;Studly caps (&amp;quot;FooBar&amp;quot;) in classes are
&lt;br&gt;&amp;gt; translated to lower-case-underscores (&amp;quot;foo_bar&amp;quot;) in model names.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Paul M. Jones
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://paul-m-jones.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://paul-m-jones.com/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Solar-talk mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26429115&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Sent from my mobile device
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26429115&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CamelCased-Models-%28with-latestsvn%29-does-not-work-tp26424134p26429115.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26428706</id>
	<title>Re: CamelCased Models (with latestsvn) does not work</title>
	<published>2009-11-19T07:55:35Z</published>
	<updated>2009-11-19T07:55:35Z</updated>
	<author>
		<name>Jeff Surgeson-3</name>
	</author>
	<content type="html">&amp;gt; &amp;gt; ./script/solar make-app Yak_App_GalleryCat --model-name=GalleryCat
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Try `--model-name=gallery_cat`. &amp;nbsp;Studly caps (&amp;quot;FooBar&amp;quot;) in classes are
&lt;br&gt;&amp;gt; translated to lower-case-underscores (&amp;quot;foo_bar&amp;quot;) in model names.
&lt;br&gt;&lt;br&gt;Quick try, seems to do the trick, will apply to a complete app, but I am sure 
&lt;br&gt;it will be fine.
&lt;br&gt;&lt;br&gt;The only change it made was to set up $this-&amp;gt;model_name = 'gallery_cat';
&lt;br&gt;&lt;br&gt;So I am nuts :( I cant believe after playing for 2 days I did not try that, 
&lt;br&gt;well I am off to throw myself out of a coconut tree.
&lt;br&gt;&lt;br&gt;Paul drop for 50 &amp;nbsp;- :D
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26428706&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CamelCased-Models-%28with-latestsvn%29-does-not-work-tp26424134p26428706.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26428217</id>
	<title>Re: CamelCased Models (with latestsvn) does not work</title>
	<published>2009-11-19T07:27:29Z</published>
	<updated>2009-11-19T07:27:29Z</updated>
	<author>
		<name>Paul M Jones-4</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 19, 2009, at 04:48 , Jeff Surgeson wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; ./script/solar make-app Yak_App_GalleryCat --model-name=GalleryCat
&lt;br&gt;&lt;br&gt;Try `--model-name=gallery_cat`. &amp;nbsp;Studly caps (&amp;quot;FooBar&amp;quot;) in classes are &amp;nbsp;
&lt;br&gt;translated to lower-case-underscores (&amp;quot;foo_bar&amp;quot;) in model names.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Paul M. Jones
&lt;br&gt;&lt;a href=&quot;http://paul-m-jones.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://paul-m-jones.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26428217&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CamelCased-Models-%28with-latestsvn%29-does-not-work-tp26424134p26428217.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26427483</id>
	<title>Re: CamelCased Models (with latestsvn) does not work</title>
	<published>2009-11-19T06:44:29Z</published>
	<updated>2009-11-19T06:44:29Z</updated>
	<author>
		<name>Jeff Surgeson-3</name>
	</author>
	<content type="html">&amp;gt; I Jeff,
&lt;br&gt;&amp;gt; I do have camel cased apps and models, but I pulled my source from the
&lt;br&gt;&amp;gt; alpha5 download. I also used the command line scripts to generate all my
&lt;br&gt;&amp;gt; classes; nothing hand coded. When I get to work I will try to pull the
&lt;br&gt;&amp;gt; latest system from svn and see if I can confirm your bug.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am sure you're not nuts - at least not in a bad way. :)
&lt;br&gt;&lt;br&gt;Cheers Jon, was starting to develop a complex :( will also try it with a alpha 
&lt;br&gt;source and see if it makes any difference.
&lt;br&gt;&lt;br&gt;Let me know what you find
&lt;br&gt;&amp;nbsp;
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26427483&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CamelCased-Models-%28with-latestsvn%29-does-not-work-tp26424134p26427483.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26427007</id>
	<title>Re: CamelCased Models (with latestsvn) does not work</title>
	<published>2009-11-19T06:12:30Z</published>
	<updated>2009-11-19T06:12:30Z</updated>
	<author>
		<name>Jon Elofson</name>
	</author>
	<content type="html">I Jeff,
&lt;br&gt;I do have camel cased apps and models, but I pulled my source from the
&lt;br&gt;alpha5 download. I also used the command line scripts to generate all my
&lt;br&gt;classes; nothing hand coded. When I get to work I will try to pull the
&lt;br&gt;latest system from svn and see if I can confirm your bug.
&lt;br&gt;&lt;br&gt;I am sure you're not nuts - at least not in a bad way. :)
&lt;br&gt;&lt;br&gt;Jon
&lt;br&gt;&lt;br&gt;On Thu, 2009-11-19 at 12:48 +0200, Jeff Surgeson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Sorry to start this anew, but to clear things up and make sure that I am not 
&lt;br&gt;&amp;gt; mad I thought I would start from scratch and lay out what I have done to show 
&lt;br&gt;&amp;gt; you that it does NOT work. To eliminate any user errors I downloaded latest 
&lt;br&gt;&amp;gt; svn trunk for core &amp; system, used the cli commands to create vendor/app/model 
&lt;br&gt;&amp;gt; without any changes or overrides to any solar code other than solar_config for 
&lt;br&gt;&amp;gt; db connection stuff
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; # Download latest core &amp; system trunk (19 Nov)
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://svn.solarphp.com/core/trunk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.solarphp.com/core/trunk&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://svn.solarphp.com/system/trunk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.solarphp.com/system/trunk&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; # Create a simple mysql table
&lt;br&gt;&amp;gt; CREATE TABLE IF NOT EXISTS `gallery_cat` (
&lt;br&gt;&amp;gt; &amp;nbsp; `id` int(11) NOT NULL auto_increment,
&lt;br&gt;&amp;gt; &amp;nbsp; `title` varchar(255) collate utf8_bin NOT NULL,
&lt;br&gt;&amp;gt; &amp;nbsp; PRIMARY KEY &amp;nbsp;(`id`)
&lt;br&gt;&amp;gt; ) ENGINE=InnoDB &amp;nbsp;DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; # Run Solar cli commands to create vendor, app &amp; model
&lt;br&gt;&amp;gt; ./script/solar make-vendor Yak
&lt;br&gt;&amp;gt; ./script/solar make-model Yak_Model_GalleryCat
&lt;br&gt;&amp;gt; ./script/solar make-app Yak_App_GalleryCat --model-name=GalleryCat
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; # Browse to app 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://localhost/xsolar_system/docroot/gallery-cat&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost/xsolar_system/docroot/gallery-cat&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If any records exist in gallery_cat table, it will display them on browse, if 
&lt;br&gt;&amp;gt; you try add a record or edit an existing record the save/update FAILS!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Just to further verify this I created a new model &amp; app the same way except no 
&lt;br&gt;&amp;gt; CamelCase, like so:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ./script/solar make-app Yak_App_Gallerycat --model-name=gallerycat
&lt;br&gt;&amp;gt; ./script/solar make-model Yak_Model_Gallerycat
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; save/update etc work fine, So please someone confirm that I am not nuts :D
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Jon I know you said that you have many CamelCased models that work fine, I can 
&lt;br&gt;&amp;gt; only say that you probably hand coded all aspects and must be doing something 
&lt;br&gt;&amp;gt; different.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I can also assume from this that most do not use CamelCased apps and models or 
&lt;br&gt;&amp;gt; you would have come across this as well. So it begs the question is CamelCased 
&lt;br&gt;&amp;gt; Models and App's something to avoid? I respect what you guys say, if the 
&lt;br&gt;&amp;gt; opinion is yes, it is to be avoided, then please say. That way I can drop this 
&lt;br&gt;&amp;gt; quest and get on with my life. :D
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Jeff Surgeson
&lt;br&gt;&amp;gt; (not nuts or ape, from darkest africa)
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Solar-talk mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26427007&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26427007&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CamelCased-Models-%28with-latestsvn%29-does-not-work-tp26424134p26427007.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26424134</id>
	<title>CamelCased Models (with latestsvn) does not work</title>
	<published>2009-11-19T02:48:11Z</published>
	<updated>2009-11-19T02:48:11Z</updated>
	<author>
		<name>Jeff Surgeson-3</name>
	</author>
	<content type="html">Sorry to start this anew, but to clear things up and make sure that I am not 
&lt;br&gt;mad I thought I would start from scratch and lay out what I have done to show 
&lt;br&gt;you that it does NOT work. To eliminate any user errors I downloaded latest 
&lt;br&gt;svn trunk for core &amp; system, used the cli commands to create vendor/app/model 
&lt;br&gt;without any changes or overrides to any solar code other than solar_config for 
&lt;br&gt;db connection stuff
&lt;br&gt;&lt;br&gt;# Download latest core &amp; system trunk (19 Nov)
&lt;br&gt;&lt;a href=&quot;http://svn.solarphp.com/core/trunk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.solarphp.com/core/trunk&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;a href=&quot;http://svn.solarphp.com/system/trunk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.solarphp.com/system/trunk&lt;/a&gt;&lt;br&gt;&lt;br&gt;# Create a simple mysql table
&lt;br&gt;CREATE TABLE IF NOT EXISTS `gallery_cat` (
&lt;br&gt;&amp;nbsp; `id` int(11) NOT NULL auto_increment,
&lt;br&gt;&amp;nbsp; `title` varchar(255) collate utf8_bin NOT NULL,
&lt;br&gt;&amp;nbsp; PRIMARY KEY &amp;nbsp;(`id`)
&lt;br&gt;) ENGINE=InnoDB &amp;nbsp;DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;
&lt;br&gt;&lt;br&gt;# Run Solar cli commands to create vendor, app &amp; model
&lt;br&gt;./script/solar make-vendor Yak
&lt;br&gt;./script/solar make-model Yak_Model_GalleryCat
&lt;br&gt;./script/solar make-app Yak_App_GalleryCat --model-name=GalleryCat
&lt;br&gt;&lt;br&gt;# Browse to app 
&lt;br&gt;&lt;a href=&quot;http://localhost/xsolar_system/docroot/gallery-cat&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost/xsolar_system/docroot/gallery-cat&lt;/a&gt;&lt;br&gt;&lt;br&gt;If any records exist in gallery_cat table, it will display them on browse, if 
&lt;br&gt;you try add a record or edit an existing record the save/update FAILS!
&lt;br&gt;&lt;br&gt;Just to further verify this I created a new model &amp; app the same way except no 
&lt;br&gt;CamelCase, like so:
&lt;br&gt;&lt;br&gt;./script/solar make-app Yak_App_Gallerycat --model-name=gallerycat
&lt;br&gt;./script/solar make-model Yak_Model_Gallerycat
&lt;br&gt;&lt;br&gt;save/update etc work fine, So please someone confirm that I am not nuts :D
&lt;br&gt;&lt;br&gt;Jon I know you said that you have many CamelCased models that work fine, I can 
&lt;br&gt;only say that you probably hand coded all aspects and must be doing something 
&lt;br&gt;different.
&lt;br&gt;&lt;br&gt;I can also assume from this that most do not use CamelCased apps and models or 
&lt;br&gt;you would have come across this as well. So it begs the question is CamelCased 
&lt;br&gt;Models and App's something to avoid? I respect what you guys say, if the 
&lt;br&gt;opinion is yes, it is to be avoided, then please say. That way I can drop this 
&lt;br&gt;quest and get on with my life. :D
&lt;br&gt;&lt;br&gt;Jeff Surgeson
&lt;br&gt;(not nuts or ape, from darkest africa)
&lt;br&gt;_______________________________________________
&lt;br&gt;Solar-talk mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26424134&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Solar-talk@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman-mail5.webfaction.com/listinfo/solar-talk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman-mail5.webfaction.com/listinfo/solar-talk&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/CamelCased-Models-%28with-latestsvn%29-does-not-work-tp26424134p26424134.html" />
</entry>

</feed>
