<?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 Model-&gt;find conditions</title>
	<atom:link href="http://ryan.ifupdown.com/2008/08/25/cakephp-model-find-conditions/feed/" rel="self" type="application/rss+xml" />
	<link>http://ryan.ifupdown.com/2008/08/25/cakephp-model-find-conditions/</link>
	<description>Opinions, Thoughts and Ideas - PHP, Java and Javascript</description>
	<lastBuildDate>Sun, 22 Aug 2010 05:16:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Michael</title>
		<link>http://ryan.ifupdown.com/2008/08/25/cakephp-model-find-conditions/comment-page-1/#comment-5141</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 28 Jul 2009 19:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://ryan.ifupdown.com/?p=223#comment-5141</guid>
		<description>thanks for this post - I&#039;d been stuck on this for a few hours</description>
		<content:encoded><![CDATA[<p>thanks for this post &#8211; I&#8217;d been stuck on this for a few hours</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://ryan.ifupdown.com/2008/08/25/cakephp-model-find-conditions/comment-page-1/#comment-4192</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Tue, 30 Jun 2009 22:24:19 +0000</pubDate>
		<guid isPermaLink="false">http://ryan.ifupdown.com/?p=223#comment-4192</guid>
		<description>Great examples of date filtering with CakePHP. I especially like the &quot;+1 day&quot; business, didn&#039;t know that existed before reading this!</description>
		<content:encoded><![CDATA[<p>Great examples of date filtering with CakePHP. I especially like the &#8220;+1 day&#8221; business, didn&#8217;t know that existed before reading this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://ryan.ifupdown.com/2008/08/25/cakephp-model-find-conditions/comment-page-1/#comment-9</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Tue, 26 Aug 2008 18:47:56 +0000</pubDate>
		<guid isPermaLink="false">http://ryan.ifupdown.com/?p=223#comment-9</guid>
		<description>@Daniel - The query was supposed to be NOW() between value1 AND value2, but I seemed like cake did not like mysql functions.</description>
		<content:encoded><![CDATA[<p>@Daniel &#8211; The query was supposed to be NOW() between value1 AND value2, but I seemed like cake did not like mysql functions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Hofstetter</title>
		<link>http://ryan.ifupdown.com/2008/08/25/cakephp-model-find-conditions/comment-page-1/#comment-8</link>
		<dc:creator>Daniel Hofstetter</dc:creator>
		<pubDate>Tue, 26 Aug 2008 05:39:02 +0000</pubDate>
		<guid isPermaLink="false">http://ryan.ifupdown.com/?p=223#comment-8</guid>
		<description>I&#039;m not sure whether this works in your case, but it is probably worth a try:

$this-&gt;YourModel-&gt;find(&#039;all&#039;, &#039;conditions&#039; =&gt; array(&#039;Model.field between ? and ?&#039; =&gt; array(&#039;value1&#039;, &#039;value2&#039;))));</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure whether this works in your case, but it is probably worth a try:</p>
<p>$this-&gt;YourModel-&gt;find(&#8216;all&#8217;, &#8216;conditions&#8217; =&gt; array(&#8216;Model.field between ? and ?&#8217; =&gt; array(&#8216;value1&#8242;, &#8216;value2&#8242;))));</p>
]]></content:encoded>
	</item>
</channel>
</rss>
