<?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 : Delete multiple records</title>
	<atom:link href="http://www.lost-in-code.com/programming/php-code/cakephp-delete-multiple-records/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lost-in-code.com/programming/php-code/cakephp-delete-multiple-records/</link>
	<description>Web Development Resources</description>
	<lastBuildDate>Mon, 30 Jan 2012 10:42:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Synue</title>
		<link>http://www.lost-in-code.com/programming/php-code/cakephp-delete-multiple-records/comment-page-1/#comment-8722</link>
		<dc:creator>Synue</dc:creator>
		<pubDate>Wed, 05 Oct 2011 15:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/2007/09/20/cakephp-delete-multiple-records/#comment-8722</guid>
		<description>Let&#039;s not forget that $this-&gt;Model-&gt;deleteAll(’1 = 1′, false); will only delete the records from the table. You would still have the auto increment option set.

To sucessfully truncate a table you can $this-&gt;ModelName-&gt;query(&quot;TRUNCATE TABLE table_name;&quot;);</description>
		<content:encoded><![CDATA[<p>Let&#8217;s not forget that $this-&gt;Model-&gt;deleteAll(’1 = 1′, false); will only delete the records from the table. You would still have the auto increment option set.</p>
<p>To sucessfully truncate a table you can $this-&gt;ModelName-&gt;query(&#8220;TRUNCATE TABLE table_name;&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pawan Rote</title>
		<link>http://www.lost-in-code.com/programming/php-code/cakephp-delete-multiple-records/comment-page-1/#comment-7609</link>
		<dc:creator>Pawan Rote</dc:creator>
		<pubDate>Wed, 06 Jul 2011 03:43:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/2007/09/20/cakephp-delete-multiple-records/#comment-7609</guid>
		<description>Hey, The above condition works, thanks for the tip.
One more thing I want point out that same condition can be treated as SQL injection.</description>
		<content:encoded><![CDATA[<p>Hey, The above condition works, thanks for the tip.<br />
One more thing I want point out that same condition can be treated as SQL injection.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vancouver web development</title>
		<link>http://www.lost-in-code.com/programming/php-code/cakephp-delete-multiple-records/comment-page-1/#comment-7460</link>
		<dc:creator>vancouver web development</dc:creator>
		<pubDate>Thu, 03 Mar 2011 21:53:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/2007/09/20/cakephp-delete-multiple-records/#comment-7460</guid>
		<description>Thanks working grate :)</description>
		<content:encoded><![CDATA[<p>Thanks working grate <img src='http://www.lost-in-code.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: parmjeet</title>
		<link>http://www.lost-in-code.com/programming/php-code/cakephp-delete-multiple-records/comment-page-1/#comment-3236</link>
		<dc:creator>parmjeet</dc:creator>
		<pubDate>Wed, 21 Jul 2010 08:01:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/2007/09/20/cakephp-delete-multiple-records/#comment-3236</guid>
		<description>I am new in cakephp .Thanks for the tips..</description>
		<content:encoded><![CDATA[<p>I am new in cakephp .Thanks for the tips..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jets</title>
		<link>http://www.lost-in-code.com/programming/php-code/cakephp-delete-multiple-records/comment-page-1/#comment-787</link>
		<dc:creator>jets</dc:creator>
		<pubDate>Thu, 21 Jan 2010 08:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/2007/09/20/cakephp-delete-multiple-records/#comment-787</guid>
		<description>hey, nice tipics buddy... i used this &amp; working great.</description>
		<content:encoded><![CDATA[<p>hey, nice tipics buddy&#8230; i used this &amp; working great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Minne</title>
		<link>http://www.lost-in-code.com/programming/php-code/cakephp-delete-multiple-records/comment-page-1/#comment-34</link>
		<dc:creator>Peter Minne</dc:creator>
		<pubDate>Sun, 07 Sep 2008 15:14:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/2007/09/20/cakephp-delete-multiple-records/#comment-34</guid>
		<description>The &quot;deleteAll&quot; requires a condition as first parameter. So your example to truncate a table should be something like this:

$this-&gt;Model-&gt;deleteAll(&#039;1 = 1&#039;, false);

Personally I think it would make sense if the cake team would implement an additional &quot;truncate&quot; method.</description>
		<content:encoded><![CDATA[<p>The &#8220;deleteAll&#8221; requires a condition as first parameter. So your example to truncate a table should be something like this:</p>
<p>$this-&gt;Model-&gt;deleteAll(&#8217;1 = 1&#8242;, false);</p>
<p>Personally I think it would make sense if the cake team would implement an additional &#8220;truncate&#8221; method.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

