<?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: Upgrading from CakePHP 1.2 pre-beta to the beta version</title>
	<atom:link href="http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Tue, 16 Mar 2010 00:59:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/comment-page-1/#comment-118061</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Wed, 21 Jan 2009 16:09:31 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/#comment-118061</guid>
		<description>@Tara: It seems like you are using an old version of bake. If you install a new version of CakePHP and replace the &quot;cake&quot; folder with the new &quot;cake&quot; folder, then bake is also updated.

Make sure you use bake in a similar way as shown below:
&lt;pre&gt;
&lt;code&gt;
dho@dh:~/projects/cake_1.2.x.x/cake/console$ ./cake bake
&lt;/code&gt;
&lt;/pre&gt;
Hope that helps!</description>
		<content:encoded><![CDATA[<p>@Tara: It seems like you are using an old version of bake. If you install a new version of CakePHP and replace the &#8220;cake&#8221; folder with the new &#8220;cake&#8221; folder, then bake is also updated.</p>
<p>Make sure you use bake in a similar way as shown below:</p>
<pre>
<code>dho@dh:~/projects/cake_1.2.x.x/cake/console$ ./cake bake</code>
</pre>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tara Page</title>
		<link>http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/comment-page-1/#comment-117951</link>
		<dc:creator>Tara Page</dc:creator>
		<pubDate>Tue, 20 Jan 2009 16:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/#comment-117951</guid>
		<description>Thanks, crazy question though.. My husband installed the newest Cake 1.2 (the stable release) last week, and when I bake my project, I still get the above error message:

Fatal error: Call to undefined method PartiesController::cleanUpFields() in /var/www_spice/app/controllers/parties_controller.php on line 22

My question is when you install the new Cake Php, does the cake command also get installed or upgraded?  Is it in a different location and perhaps I have the wrong cake in my path?  Let me know, I&#039;m not sure why it seems as though I have an old cake baker, but newest cake php download....

Very confused at the moment :)  THanks for any suggestions...

Tara</description>
		<content:encoded><![CDATA[<p>Thanks, crazy question though.. My husband installed the newest Cake 1.2 (the stable release) last week, and when I bake my project, I still get the above error message:</p>
<p>Fatal error: Call to undefined method PartiesController::cleanUpFields() in /var/www_spice/app/controllers/parties_controller.php on line 22</p>
<p>My question is when you install the new Cake Php, does the cake command also get installed or upgraded?  Is it in a different location and perhaps I have the wrong cake in my path?  Let me know, I&#8217;m not sure why it seems as though I have an old cake baker, but newest cake php download&#8230;.</p>
<p>Very confused at the moment :)  THanks for any suggestions&#8230;</p>
<p>Tara</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/comment-page-1/#comment-108827</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Fri, 03 Oct 2008 15:17:18 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/#comment-108827</guid>
		<description>@Tara: Hm, which version of CakePHP 1.2 do you use? RC3? If you are not yet using RC3, I recommend to upgrade.

Hope that helps!</description>
		<content:encoded><![CDATA[<p>@Tara: Hm, which version of CakePHP 1.2 do you use? RC3? If you are not yet using RC3, I recommend to upgrade.</p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tara Page</title>
		<link>http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/comment-page-1/#comment-108742</link>
		<dc:creator>Tara Page</dc:creator>
		<pubDate>Thu, 02 Oct 2008 20:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/#comment-108742</guid>
		<description>Hi,

I&#039;m new to Cake and am using Verison 1.2 and just did cake bake on a few of my tables.  There seems to be a bug in the baker still that is putting in 1.1 code that isn&#039;t accepted in 1.1 (like generateList instead of find-&gt;(&#039;list&#039;))

My newest problem is that after I bake the code (and didn&#039;t make any changes) I try to add a new record to my table and I get:

Fatal error: Call to undefined method PartiesController::cleanUpFields() in /var/www_spice/app/controllers/parties_controller.php on line 22


Any help would be appreciated, if I take out cleanUpFields() then it doesn&#039;t work, I get a blank page.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m new to Cake and am using Verison 1.2 and just did cake bake on a few of my tables.  There seems to be a bug in the baker still that is putting in 1.1 code that isn&#8217;t accepted in 1.1 (like generateList instead of find-&gt;(&#8216;list&#8217;))</p>
<p>My newest problem is that after I bake the code (and didn&#8217;t make any changes) I try to add a new record to my table and I get:</p>
<p>Fatal error: Call to undefined method PartiesController::cleanUpFields() in /var/www_spice/app/controllers/parties_controller.php on line 22</p>
<p>Any help would be appreciated, if I take out cleanUpFields() then it doesn&#8217;t work, I get a blank page.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dia</title>
		<link>http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/comment-page-1/#comment-59336</link>
		<dc:creator>Dia</dc:creator>
		<pubDate>Wed, 23 Jan 2008 16:30:40 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/#comment-59336</guid>
		<description>@speedmax

correct me if I&#039;m wrong but with the new &quot;find&quot; approach, shouldn&#039;t we write 
return ($this-&gt;find(&#039;count&#039;, array(&#039;conditions&#039; =&gt; $conditions)) == 0);
instead of 
return ($this-&gt;findCount($condition) == 0);
?</description>
		<content:encoded><![CDATA[<p>@speedmax</p>
<p>correct me if I&#8217;m wrong but with the new &#8220;find&#8221; approach, shouldn&#8217;t we write<br />
return ($this-&gt;find(&#8216;count&#8217;, array(&#8216;conditions&#8217; =&gt; $conditions)) == 0);<br />
instead of<br />
return ($this-&gt;findCount($condition) == 0);<br />
?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/comment-page-1/#comment-57847</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Fri, 18 Jan 2008 15:46:48 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/#comment-57847</guid>
		<description>@Matt: Cool to hear it was useful for you :)</description>
		<content:encoded><![CDATA[<p>@Matt: Cool to hear it was useful for you :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Huggins</title>
		<link>http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/comment-page-1/#comment-57377</link>
		<dc:creator>Matt Huggins</dc:creator>
		<pubDate>Wed, 16 Jan 2008 22:21:58 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/#comment-57377</guid>
		<description>Also, thanks for the heads up on using &quot;deconstruct&quot; instead of &quot;cleanUpFields&quot;, cakebaker.  Worked like a charm! :)</description>
		<content:encoded><![CDATA[<p>Also, thanks for the heads up on using &#8220;deconstruct&#8221; instead of &#8220;cleanUpFields&#8221;, cakebaker.  Worked like a charm! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Huggins</title>
		<link>http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/comment-page-1/#comment-57043</link>
		<dc:creator>Matt Huggins</dc:creator>
		<pubDate>Tue, 15 Jan 2008 20:03:43 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/#comment-57043</guid>
		<description>Thanks for sharing, speedmax.  I actually ended up getting my code to work in the following manner before seeing your response.  However, I think I&#039;ll change it since your way appears to be more efficient and readable.

function validateUnique($data) {
	$value = current($data);
	$field = key($data);
	
	$obj = $this-&gt;find(array($field =&gt; $value), null, null, -1);
	$match = isset($this-&gt;id) &amp;&amp; ($obj[$this-&gt;name][$this-&gt;primaryKey] == $this-&gt;id);
	return !$obj &#124;&#124; ($obj &amp;&amp; $match);
}</description>
		<content:encoded><![CDATA[<p>Thanks for sharing, speedmax.  I actually ended up getting my code to work in the following manner before seeing your response.  However, I think I&#8217;ll change it since your way appears to be more efficient and readable.</p>
<p>function validateUnique($data) {<br />
	$value = current($data);<br />
	$field = key($data);</p>
<p>	$obj = $this-&gt;find(array($field =&gt; $value), null, null, -1);<br />
	$match = isset($this-&gt;id) &amp;&amp; ($obj[$this-&gt;name][$this-&gt;primaryKey] == $this-&gt;id);<br />
	return !$obj || ($obj &amp;&amp; $match);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deprecated stuff in CakePHP 1.2 - cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/comment-page-1/#comment-55500</link>
		<dc:creator>Deprecated stuff in CakePHP 1.2 - cakebaker</dc:creator>
		<pubDate>Thu, 10 Jan 2008 17:39:52 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/#comment-55500</guid>
		<description>[...] I got asked by Beth in a comment whether there is a list of deprecated stuff. As I am not aware of such a list I compiled one by [...]</description>
		<content:encoded><![CDATA[<p>[...] I got asked by Beth in a comment whether there is a list of deprecated stuff. As I am not aware of such a list I compiled one by [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CakePHP 1.2&#8230; beta!! &#171; 32 in 23</title>
		<link>http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/comment-page-1/#comment-55490</link>
		<dc:creator>CakePHP 1.2&#8230; beta!! &#171; 32 in 23</dc:creator>
		<pubDate>Thu, 10 Jan 2008 16:40:22 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/#comment-55490</guid>
		<description>[...] Bakery trovate un articolo in inglese di presentazione della beta, mentre su Cakebaker trovate un interessante articolo su alcune differenze che si incontrano nell&#8217;upgrade dalla [...]</description>
		<content:encoded><![CDATA[<p>[...] Bakery trovate un articolo in inglese di presentazione della beta, mentre su Cakebaker trovate un interessante articolo su alcune differenze che si incontrano nell&#8217;upgrade dalla [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
