<?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: CakePHP tip of the day: pay attention to conventions</title>
	<atom:link href="http://marianoiglesias.com.ar/cakephp/cakephp-tip-of-the-day-pay-attention-to-conventions/feed/" rel="self" type="application/rss+xml" />
	<link>http://marianoiglesias.com.ar/cakephp/cakephp-tip-of-the-day-pay-attention-to-conventions/</link>
	<description>A glimpse at a coder&#039;s troubled mind</description>
	<lastBuildDate>Wed, 30 Jun 2010 11:12:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Let them eat cake &#187; UPDATE statt INSERT</title>
		<link>http://marianoiglesias.com.ar/cakephp/cakephp-tip-of-the-day-pay-attention-to-conventions/comment-page-1/#comment-1461</link>
		<dc:creator>Let them eat cake &#187; UPDATE statt INSERT</dc:creator>
		<pubDate>Wed, 28 Apr 2010 15:36:15 +0000</pubDate>
		<guid isPermaLink="false">http://marianoiglesias.com.ar/1/cakephp-tip-of-the-day-pay-attention-to-conventions/#comment-1461</guid>
		<description>[...] allerdings nicht &#8211; Cake erstellt trotzdem stur neue Einträge. Eine Google Suche brachte die Lösung. Cake prüft die Existenz von Einträgen während des Validierens. Der richtige Callback für [...]</description>
		<content:encoded><![CDATA[<p>[...] allerdings nicht &#8211; Cake erstellt trotzdem stur neue Einträge. Eine Google Suche brachte die Lösung. Cake prüft die Existenz von Einträgen während des Validierens. Der richtige Callback für [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark De Verno [Visitor]</title>
		<link>http://marianoiglesias.com.ar/cakephp/cakephp-tip-of-the-day-pay-attention-to-conventions/comment-page-1/#comment-108</link>
		<dc:creator>Mark De Verno [Visitor]</dc:creator>
		<pubDate>Thu, 02 Apr 2009 19:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://marianoiglesias.com.ar/1/cakephp-tip-of-the-day-pay-attention-to-conventions/#comment-108</guid>
		<description>Nice article, but I agree with Daniel.  As you are explicitly passing in the id of the data, Cake should update, not insert.
</description>
		<content:encoded><![CDATA[<p>Nice article, but I agree with Daniel.  As you are explicitly passing in the id of the data, Cake should update, not insert.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Hofstetter [Visitor]</title>
		<link>http://marianoiglesias.com.ar/cakephp/cakephp-tip-of-the-day-pay-attention-to-conventions/comment-page-1/#comment-107</link>
		<dc:creator>Daniel Hofstetter [Visitor]</dc:creator>
		<pubDate>Thu, 25 Oct 2007 11:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://marianoiglesias.com.ar/1/cakephp-tip-of-the-day-pay-attention-to-conventions/#comment-107</guid>
		<description>Well, if the first example you described really does an insert instead of an update (I didn&#039;t test it myself), then I have to say it is a bug. If I explicitly pass the id in the data I want to save, then Cake should use this id, and not assume something else.&lt;br /&gt;
&lt;br /&gt;
What you described is an unwanted side effect of the validates() function. If you omit calling this function, it would update the record, right? So the behavior of the save() function depends on whether I call validates() first. In one case the save() function will insert the data, in the other case it updates the record, even though in both cases the same data is provided. Hm, sounds like a bug to me ;-)
</description>
		<content:encoded><![CDATA[<p>Well, if the first example you described really does an insert instead of an update (I didn&#8217;t test it myself), then I have to say it is a bug. If I explicitly pass the id in the data I want to save, then Cake should use this id, and not assume something else.</p>
<p>What you described is an unwanted side effect of the validates() function. If you omit calling this function, it would update the record, right? So the behavior of the save() function depends on whether I call validates() first. In one case the save() function will insert the data, in the other case it updates the record, even though in both cases the same data is provided. Hm, sounds like a bug to me <img src='http://marianoiglesias.com.ar/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sarimarton [Visitor]</title>
		<link>http://marianoiglesias.com.ar/cakephp/cakephp-tip-of-the-day-pay-attention-to-conventions/comment-page-1/#comment-106</link>
		<dc:creator>sarimarton [Visitor]</dc:creator>
		<pubDate>Tue, 23 Oct 2007 23:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://marianoiglesias.com.ar/1/cakephp-tip-of-the-day-pay-attention-to-conventions/#comment-106</guid>
		<description>Great article, thank you!
</description>
		<content:encoded><![CDATA[<p>Great article, thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk
Database Caching 3/25 queries in 0.053 seconds using disk

Served from: marianoiglesias.com.ar @ 2010-09-05 10:31:30 -->