<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Recording created_by and modified_by</title>
	<atom:link href="http://www.neilcrookes.com/2008/09/12/recording-created_by-and-modified_by/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.neilcrookes.com/2008/09/12/recording-created_by-and-modified_by/</link>
	<description>Learnings and Teachings on Web Application Development &#38; CakePHP</description>
	<lastBuildDate>Thu, 29 Jul 2010 07:25:11 +0200</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jeff Walters</title>
		<link>http://www.neilcrookes.com/2008/09/12/recording-created_by-and-modified_by/comment-page-1/#comment-5751</link>
		<dc:creator>Jeff Walters</dc:creator>
		<pubDate>Fri, 02 Oct 2009 23:46:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=60#comment-5751</guid>
		<description>Neil, thank you for the code! This was exactly was I was looking for. Did you ever write this into a Behavior class?

Thanks again, Jeff</description>
		<content:encoded><![CDATA[<p>Neil, thank you for the code! This was exactly was I was looking for. Did you ever write this into a Behavior class?</p>
<p>Thanks again, Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rafaelbandeira3</title>
		<link>http://www.neilcrookes.com/2008/09/12/recording-created_by-and-modified_by/comment-page-1/#comment-212</link>
		<dc:creator>rafaelbandeira3</dc:creator>
		<pubDate>Tue, 25 Nov 2008 15:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=60#comment-212</guid>
		<description>just another thought on the relation you stablished, wouldn&#039;t it be more friendly and logical if it was: Stuff belongsTo Creator and Stuff belongsTo Editor? 
I think that singular nouns are always the best approach for a relationship, as it makes much more sense on the code:
$this-&gt;Project-&gt;Milestone-&gt;find(&#039;all&#039;);
$this-&gt;Task-&gt;Creator-&gt;read();</description>
		<content:encoded><![CDATA[<p>just another thought on the relation you stablished, wouldn&#8217;t it be more friendly and logical if it was: Stuff belongsTo Creator and Stuff belongsTo Editor?<br />
I think that singular nouns are always the best approach for a relationship, as it makes much more sense on the code:<br />
$this-&gt;Project-&gt;Milestone-&gt;find(&#8216;all&#8217;);<br />
$this-&gt;Task-&gt;Creator-&gt;read();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil Crookes</title>
		<link>http://www.neilcrookes.com/2008/09/12/recording-created_by-and-modified_by/comment-page-1/#comment-190</link>
		<dc:creator>Neil Crookes</dc:creator>
		<pubDate>Fri, 14 Nov 2008 17:02:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=60#comment-190</guid>
		<description>@rafaelbandeira3, welcome and thanks for your comment. Regarding Felix&#039;s method, it feels weird to access stuff statically that depend on user interaction with the site? I think I prefer your method. I am either going to wrap this functionality up in a behaviour for my next project or I might check out phishy&#039;s versionable behaviour, that looks pretty useful.</description>
		<content:encoded><![CDATA[<p>@rafaelbandeira3, welcome and thanks for your comment. Regarding Felix&#8217;s method, it feels weird to access stuff statically that depend on user interaction with the site? I think I prefer your method. I am either going to wrap this functionality up in a behaviour for my next project or I might check out phishy&#8217;s versionable behaviour, that looks pretty useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rafaelbandeira3</title>
		<link>http://www.neilcrookes.com/2008/09/12/recording-created_by-and-modified_by/comment-page-1/#comment-189</link>
		<dc:creator>rafaelbandeira3</dc:creator>
		<pubDate>Fri, 14 Nov 2008 12:43:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=60#comment-189</guid>
		<description>It&#039;s a nice approach.
I&#039;ve achieved the same with a behavior - name OwnableBehavior - with an easy implementation independent of the controller. It can be done either looking on $_SESSION or implementing something similar with the auth system suggested in many posts of debbugable.com - with an static class to grab user information anywhere in the app.
Felix have used the User model in his approach, I instead preferred to create a proper class, named AppUser, and just to manage logged in user info, the AuthComponent remained doing it&#039;s job</description>
		<content:encoded><![CDATA[<p>It&#8217;s a nice approach.<br />
I&#8217;ve achieved the same with a behavior &#8211; name OwnableBehavior &#8211; with an easy implementation independent of the controller. It can be done either looking on $_SESSION or implementing something similar with the auth system suggested in many posts of debbugable.com &#8211; with an static class to grab user information anywhere in the app.<br />
Felix have used the User model in his approach, I instead preferred to create a proper class, named AppUser, and just to manage logged in user info, the AuthComponent remained doing it&#8217;s job</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Signets remarquables du 11/10/2008 au 21/10/2008 &#124; Cherry on the...</title>
		<link>http://www.neilcrookes.com/2008/09/12/recording-created_by-and-modified_by/comment-page-1/#comment-179</link>
		<dc:creator>Signets remarquables du 11/10/2008 au 21/10/2008 &#124; Cherry on the...</dc:creator>
		<pubDate>Tue, 21 Oct 2008 18:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=60#comment-179</guid>
		<description>[...] Neil Crookes &#187; Recording created_by and modified_by [...]</description>
		<content:encoded><![CDATA[<p>[...] Neil Crookes &raquo; Recording created_by and modified_by [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brenton</title>
		<link>http://www.neilcrookes.com/2008/09/12/recording-created_by-and-modified_by/comment-page-1/#comment-46</link>
		<dc:creator>Brenton</dc:creator>
		<pubDate>Wed, 17 Sep 2008 19:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=60#comment-46</guid>
		<description>Awesome, thanks!!</description>
		<content:encoded><![CDATA[<p>Awesome, thanks!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
