<?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 created and modified fields</title>
	<atom:link href="http://www.halecomm.net/blog/2010/02/cakephp-created-and-modified-fields/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.halecomm.net/blog/2010/02/cakephp-created-and-modified-fields/</link>
	<description>To boldly code where no man has ever coded before</description>
	<lastBuildDate>Mon, 23 Jan 2012 08:04:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Kim</title>
		<link>http://www.halecomm.net/blog/2010/02/cakephp-created-and-modified-fields/comment-page-1/#comment-444</link>
		<dc:creator>Kim</dc:creator>
		<pubDate>Mon, 01 Mar 2010 11:43:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.halecomm.net/blog/?p=102#comment-444</guid>
		<description>Update:

It seems that I had broken the automatic adding of &quot;created&quot; and &quot;modified&quot; fields upon ADDING / CREATING new records...

The correct practice to get this feature up and running when editing records, is thus checking your edited data-array for a &quot;created&quot; or &quot;modified&quot; field, and unsetting these fields if available. Then do a $this-&gt;ModelName-&gt;save() and all is well!

This way CakePHP automagically adds these fields with the correct timestamps..

Greets! and sorry for the false info ;-)</description>
		<content:encoded><![CDATA[<p>Update:</p>
<p>It seems that I had broken the automatic adding of &#8220;created&#8221; and &#8220;modified&#8221; fields upon ADDING / CREATING new records&#8230;</p>
<p>The correct practice to get this feature up and running when editing records, is thus checking your edited data-array for a &#8220;created&#8221; or &#8220;modified&#8221; field, and unsetting these fields if available. Then do a $this->ModelName->save() and all is well!</p>
<p>This way CakePHP automagically adds these fields with the correct timestamps..</p>
<p>Greets! and sorry for the false info <img src='http://www.halecomm.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

