<?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: Use Model-&gt;create()</title>
	<atom:link href="http://cakephp.prometsupport.com/2008/use-model-create/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakephp.prometsupport.com/2008/use-model-create/</link>
	<description></description>
	<lastBuildDate>Sun, 27 Jun 2010 00:00:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: rolan</title>
		<link>http://cakephp.prometsupport.com/2008/use-model-create/comment-page-1/#comment-176</link>
		<dc:creator>rolan</dc:creator>
		<pubDate>Wed, 03 Sep 2008 00:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://cakephp.prometsupport.com/?p=37#comment-176</guid>
		<description>No. It does save $this-&gt;data. The problem is, it updates/overwrites the previously read record with $this-&gt;data. The id of the record is kept at $this-&gt;Model-&gt;id after doing a read. When you do a save, the id is checked and if there is a value set, it uses that id for saving the record. To reset the value of the id (and any  data &quot;residue&quot; in the model), a call to $this-&gt;Model-&gt;create() is needed.</description>
		<content:encoded><![CDATA[<p>No. It does save $this->data. The problem is, it updates/overwrites the previously read record with $this->data. The id of the record is kept at $this->Model->id after doing a read. When you do a save, the id is checked and if there is a value set, it uses that id for saving the record. To reset the value of the id (and any  data &#8220;residue&#8221; in the model), a call to $this->Model->create() is needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://cakephp.prometsupport.com/2008/use-model-create/comment-page-1/#comment-162</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Tue, 02 Sep 2008 11:28:14 +0000</pubDate>
		<guid isPermaLink="false">http://cakephp.prometsupport.com/?p=37#comment-162</guid>
		<description>Why is this sorry? 

Is this because you are creating a model object with read which is filled with data, then when you call say model-&gt;save($this-&gt;data) in your controller, the data in the model is saved rather than $this-&gt;data?</description>
		<content:encoded><![CDATA[<p>Why is this sorry? </p>
<p>Is this because you are creating a model object with read which is filled with data, then when you call say model-&gt;save($this-&gt;data) in your controller, the data in the model is saved rather than $this-&gt;data?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
