<?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: HAVING clause in CakePHP find query</title>
	<atom:link href="http://abcoder.com/php/cakephp/having-clause-in-cakephp-find-query/feed" rel="self" type="application/rss+xml" />
	<link>http://abcoder.com/php/cakephp/having-clause-in-cakephp-find-query</link>
	<description>Coding! don&#039;t ask, we&#039;re too good at it</description>
	<lastBuildDate>Wed, 09 May 2012 18:28:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Jonathan</title>
		<link>http://abcoder.com/php/cakephp/having-clause-in-cakephp-find-query#comment-12386</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Fri, 23 Sep 2011 18:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://abcoder.com/?p=409#comment-12386</guid>
		<description>Great idea.
You can do the same thing by adding a final condition:

$conditions = array(
&#039;Product.is_active&#039; =&gt; 1,
&#039;1 HAVING total_reviews &gt;= 2&#039;
);</description>
		<content:encoded><![CDATA[<p>Great idea.<br />
You can do the same thing by adding a final condition:</p>
<p>$conditions = array(<br />
&#8216;Product.is_active&#8217; =&gt; 1,<br />
&#8217;1 HAVING total_reviews &gt;= 2&#8242;<br />
);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: funny cats</title>
		<link>http://abcoder.com/php/cakephp/having-clause-in-cakephp-find-query#comment-10474</link>
		<dc:creator>funny cats</dc:creator>
		<pubDate>Thu, 21 Jul 2011 15:12:40 +0000</pubDate>
		<guid isPermaLink="false">http://abcoder.com/?p=409#comment-10474</guid>
		<description>Appreciating the time and effort you put into your website and in depth information you provide. It&#039;s awesome to come across a blog every once in a while that isn&#039;t the same outdated rehashed material. Great read! I&#039;ve saved your site and I&#039;m including your RSS feeds to my Google account.</description>
		<content:encoded><![CDATA[<p>Appreciating the time and effort you put into your website and in depth information you provide. It&#8217;s awesome to come across a blog every once in a while that isn&#8217;t the same outdated rehashed material. Great read! I&#8217;ve saved your site and I&#8217;m including your RSS feeds to my Google account.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pozycjonowanie</title>
		<link>http://abcoder.com/php/cakephp/having-clause-in-cakephp-find-query#comment-8473</link>
		<dc:creator>pozycjonowanie</dc:creator>
		<pubDate>Tue, 25 Jan 2011 02:37:09 +0000</pubDate>
		<guid isPermaLink="false">http://abcoder.com/?p=409#comment-8473</guid>
		<description>I have a few days I have this blog bookmarked as a favorite site. A little funny, because even kilak weeks ago on this forum I said before, but no blog you will not find among my esteemed pages. Testifying to the extraordinary discussion that blogs are always niewartosciowym Internet junk, on which there is no reliable knowledge, or objectivity. I&#039;m not talking now about a specific address here, but all - is talking about blogs in the form of handbooks, diaries, and information services - there is always a lot of unreliable knowledge and unverified information, which translates into my long-standing aversion to these sites. However, its unwillingness to revise its humility, a few days ago I searched the Internet resources in the search for specific knowledge. A little of the case visited a few blogs, because even though the subject matter often appears in the network, but this subject rather superficially presented. Kidy came across this blog, I was more than surprised. It turned out that the issue presented here is very extensive. There is no doubt that in terms of content is the best service of its kind in the Polish network. Not only that - even scientific, popular, and service breaks are not able to match this portal. So far not succeeded, and even contact the author of all the major publications. But I hope it succeeds - it will write to my email and did not disappoint me, as a faithful reader of the future and will continually grow your blog. Because these sites are thin on the ground in the Polish Internet. Why did I write all this? All through my character, I do not like making mistakes, but if ... is to admit them. Such is the case here. Of course, one swallow does not make (they say), but on the basis of this blog I&#039;m willing to admit that this kind of sites on the Internet can be very valuable, kind and above all interesting.</description>
		<content:encoded><![CDATA[<p>I have a few days I have this blog bookmarked as a favorite site. A little funny, because even kilak weeks ago on this forum I said before, but no blog you will not find among my esteemed pages. Testifying to the extraordinary discussion that blogs are always niewartosciowym Internet junk, on which there is no reliable knowledge, or objectivity. I&#8217;m not talking now about a specific address here, but all &#8211; is talking about blogs in the form of handbooks, diaries, and information services &#8211; there is always a lot of unreliable knowledge and unverified information, which translates into my long-standing aversion to these sites. However, its unwillingness to revise its humility, a few days ago I searched the Internet resources in the search for specific knowledge. A little of the case visited a few blogs, because even though the subject matter often appears in the network, but this subject rather superficially presented. Kidy came across this blog, I was more than surprised. It turned out that the issue presented here is very extensive. There is no doubt that in terms of content is the best service of its kind in the Polish network. Not only that &#8211; even scientific, popular, and service breaks are not able to match this portal. So far not succeeded, and even contact the author of all the major publications. But I hope it succeeds &#8211; it will write to my email and did not disappoint me, as a faithful reader of the future and will continually grow your blog. Because these sites are thin on the ground in the Polish Internet. Why did I write all this? All through my character, I do not like making mistakes, but if &#8230; is to admit them. Such is the case here. Of course, one swallow does not make (they say), but on the basis of this blog I&#8217;m willing to admit that this kind of sites on the Internet can be very valuable, kind and above all interesting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy</title>
		<link>http://abcoder.com/php/cakephp/having-clause-in-cakephp-find-query#comment-4654</link>
		<dc:creator>Roy</dc:creator>
		<pubDate>Mon, 01 Feb 2010 18:35:44 +0000</pubDate>
		<guid isPermaLink="false">http://abcoder.com/?p=409#comment-4654</guid>
		<description>Heybaloo is a site for sharing local news. Users submit news stories about where they live and we tag them with locations, so you can view a news feed for your area (right down to a city suburb or small village). It&#039;s kinda like a hyperlocal Digg or Reddit. 

If you go to http://www.heybaloo.com/account/request and register your name and email, I&#039;ll get an invite sent right out to you.</description>
		<content:encoded><![CDATA[<p>Heybaloo is a site for sharing local news. Users submit news stories about where they live and we tag them with locations, so you can view a news feed for your area (right down to a city suburb or small village). It&#8217;s kinda like a hyperlocal Digg or Reddit. </p>
<p>If you go to <a href="http://www.heybaloo.com/account/request" rel="nofollow">http://www.heybaloo.com/account/request</a> and register your name and email, I&#8217;ll get an invite sent right out to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adnan</title>
		<link>http://abcoder.com/php/cakephp/having-clause-in-cakephp-find-query#comment-4653</link>
		<dc:creator>adnan</dc:creator>
		<pubDate>Mon, 01 Feb 2010 18:26:03 +0000</pubDate>
		<guid isPermaLink="false">http://abcoder.com/?p=409#comment-4653</guid>
		<description>that&#039;s why I tried so hard to find out the way to do it using find() function. Using query() with cake is the last option. And yes, you are right SQL injection is a big concern too to avoid query() function.

I checked your site http://www.heybaloo.com. What is it about? can you pls send me an invitation :)

Thanks</description>
		<content:encoded><![CDATA[<p>that&#8217;s why I tried so hard to find out the way to do it using find() function. Using query() with cake is the last option. And yes, you are right SQL injection is a big concern too to avoid query() function.</p>
<p>I checked your site <a href="http://www.heybaloo.com" rel="nofollow">http://www.heybaloo.com</a>. What is it about? can you pls send me an invitation <img src='http://abcoder.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy</title>
		<link>http://abcoder.com/php/cakephp/having-clause-in-cakephp-find-query#comment-4651</link>
		<dc:creator>Roy</dc:creator>
		<pubDate>Mon, 01 Feb 2010 18:00:40 +0000</pubDate>
		<guid isPermaLink="false">http://abcoder.com/?p=409#comment-4651</guid>
		<description>It&#039;s a slight hack, but not too much so because it produces perfect SQL using $this-&gt;Model-&gt;find. It&#039;s when you start using $this-&gt;Model-&gt;query that it starts to get hacky!</description>
		<content:encoded><![CDATA[<p>It&#8217;s a slight hack, but not too much so because it produces perfect SQL using $this-&gt;Model-&gt;find. It&#8217;s when you start using $this-&gt;Model-&gt;query that it starts to get hacky!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adnan</title>
		<link>http://abcoder.com/php/cakephp/having-clause-in-cakephp-find-query#comment-4650</link>
		<dc:creator>adnan</dc:creator>
		<pubDate>Mon, 01 Feb 2010 17:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://abcoder.com/?p=409#comment-4650</guid>
		<description>haha, liked your comment :)
umm.. as long it works fine some sql injection is not bad to make it work in &quot;cake way&quot; :-P</description>
		<content:encoded><![CDATA[<p>haha, liked your comment <img src='http://abcoder.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
umm.. as long it works fine some sql injection is not bad to make it work in &#8220;cake way&#8221; <img src='http://abcoder.com/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy</title>
		<link>http://abcoder.com/php/cakephp/having-clause-in-cakephp-find-query#comment-4649</link>
		<dc:creator>Roy</dc:creator>
		<pubDate>Mon, 01 Feb 2010 17:29:58 +0000</pubDate>
		<guid isPermaLink="false">http://abcoder.com/?p=409#comment-4649</guid>
		<description>Neat idea. Found your page after googling for this exact problem and it works like a charm. 

Kinda feels like an SQL injection attack on your own code, no?</description>
		<content:encoded><![CDATA[<p>Neat idea. Found your page after googling for this exact problem and it works like a charm. </p>
<p>Kinda feels like an SQL injection attack on your own code, no?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

