<?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, 31 Jan 2012 15:12:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<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-157739</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Mon, 19 Apr 2010 14:11:14 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/#comment-157739</guid>
		<description>@Amit: Well, the deconstruct() method is defined in the Model class and not in the Controller class, hence the error messages. So you have to call this method in the following way:
&lt;pre&gt;
&lt;code&gt;
$this-&gt;YourModel-&gt;deconstruct(...);
&lt;/code&gt;
&lt;/pre&gt;
However, this method is usually called automatically by the framework. 

Hope this helps!</description>
		<content:encoded><![CDATA[<p>@Amit: Well, the deconstruct() method is defined in the Model class and not in the Controller class, hence the error messages. So you have to call this method in the following way:</p>
<pre>
<code>$this-&gt;YourModel-&gt;deconstruct(...);</code>
</pre>
<p>However, this method is usually called automatically by the framework. </p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit</title>
		<link>http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/comment-page-1/#comment-157372</link>
		<dc:creator>Amit</dc:creator>
		<pubDate>Sat, 17 Apr 2010 22:23:28 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/#comment-157372</guid>
		<description>When I remove cleanUpFields and place deconstruct method, it said me 

Fatal error: Call to undefined method ImagesController::deConstruct() in /usr/home/apandya/test17.newave.int/testproj/app/controllers/images_controller.php  on line 18

OR

Fatal error: Call to undefined method ImagesController::deconstruct() in /usr/home/apandya/test17.newave.int/testproj/app/controllers/images_controller.php  on line 18

and it is not working for me

Regards
Amit Pandya</description>
		<content:encoded><![CDATA[<p>When I remove cleanUpFields and place deconstruct method, it said me </p>
<p>Fatal error: Call to undefined method ImagesController::deConstruct() in /usr/home/apandya/test17.newave.int/testproj/app/controllers/images_controller.php  on line 18</p>
<p>OR</p>
<p>Fatal error: Call to undefined method ImagesController::deconstruct() in /usr/home/apandya/test17.newave.int/testproj/app/controllers/images_controller.php  on line 18</p>
<p>and it is not working for me</p>
<p>Regards<br />
Amit Pandya</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-156188</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Wed, 07 Apr 2010 14:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/#comment-156188</guid>
		<description>@Herlia: Yes, the method Controller::cleanUpFields() no longer exists. It has been replaced by Model::deconstruct(), which is called automagically. So I think you simply have to remove those references to cleanUpFields() and it should work.

Hope that helps!</description>
		<content:encoded><![CDATA[<p>@Herlia: Yes, the method Controller::cleanUpFields() no longer exists. It has been replaced by Model::deconstruct(), which is called automagically. So I think you simply have to remove those references to cleanUpFields() and it should work.</p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Herlia</title>
		<link>http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/comment-page-1/#comment-155995</link>
		<dc:creator>Herlia</dc:creator>
		<pubDate>Tue, 06 Apr 2010 16:05:08 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/#comment-155995</guid>
		<description>what happens with tara happens to me too.. maybe it because the method cleanupfields has no longer available.
can u help me fix it?? what method i supposed to use?

thx for ur suggestion :)</description>
		<content:encoded><![CDATA[<p>what happens with tara happens to me too.. maybe it because the method cleanupfields has no longer available.<br />
can u help me fix it?? what method i supposed to use?</p>
<p>thx for ur suggestion :)</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-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>
</channel>
</rss>

