<?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"
	>
<channel>
	<title>Comments on: Custom Propel Criteria Tips</title>
	<atom:link href="http://blog.mirthlab.com/2007/12/11/custom-propel-criteria-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mirthlab.com/2007/12/11/custom-propel-criteria-tips/</link>
	<description>fortune favors the bold</description>
	<pubDate>Mon, 08 Sep 2008 10:30:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Markus</title>
		<link>http://blog.mirthlab.com/2007/12/11/custom-propel-criteria-tips/#comment-10</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Thu, 13 Dec 2007 16:06:20 +0000</pubDate>
		<guid isPermaLink="false">http://mirthlab.com/2007/12/11/custom-propel-criteria-tips/#comment-10</guid>
		<description>Hi Mark,

I think a Propel Behavior would not be the right direction for your case..
This feature should be implemented directly in the criteria, so it can be used with all classes of your domain model.. (This features is independet from specific model classes)</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>I think a Propel Behavior would not be the right direction for your case..<br />
This feature should be implemented directly in the criteria, so it can be used with all classes of your domain model.. (This features is independet from specific model classes)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Quezada</title>
		<link>http://blog.mirthlab.com/2007/12/11/custom-propel-criteria-tips/#comment-9</link>
		<dc:creator>Mark Quezada</dc:creator>
		<pubDate>Wed, 12 Dec 2007 19:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://mirthlab.com/2007/12/11/custom-propel-criteria-tips/#comment-9</guid>
		<description>Markus,

I think that's a good idea. It might make even more sense though to make it a Propel Behavior so that every object in your model can have the orderByRand() method without writing any additional code.</description>
		<content:encoded><![CDATA[<p>Markus,</p>
<p>I think that&#8217;s a good idea. It might make even more sense though to make it a Propel Behavior so that every object in your model can have the orderByRand() method without writing any additional code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus</title>
		<link>http://blog.mirthlab.com/2007/12/11/custom-propel-criteria-tips/#comment-8</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Wed, 12 Dec 2007 16:40:50 +0000</pubDate>
		<guid isPermaLink="false">http://mirthlab.com/2007/12/11/custom-propel-criteria-tips/#comment-8</guid>
		<description>you should better subclass the propel criteria and add a orderByRand() method or sth like that..

so you only have one place where you have to change the code, if you move from one dbtype to another.</description>
		<content:encoded><![CDATA[<p>you should better subclass the propel criteria and add a orderByRand() method or sth like that..</p>
<p>so you only have one place where you have to change the code, if you move from one dbtype to another.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://blog.mirthlab.com/2007/12/11/custom-propel-criteria-tips/#comment-7</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 12 Dec 2007 14:35:27 +0000</pubDate>
		<guid isPermaLink="false">http://mirthlab.com/2007/12/11/custom-propel-criteria-tips/#comment-7</guid>
		<description>I fully agree with you, Mark. I never switched the database during a project - and honestly, those small adjustments like changing some SQL queries would net be the most problematic part in the migration process.</description>
		<content:encoded><![CDATA[<p>I fully agree with you, Mark. I never switched the database during a project - and honestly, those small adjustments like changing some SQL queries would net be the most problematic part in the migration process.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Digital Base</title>
		<link>http://blog.mirthlab.com/2007/12/11/custom-propel-criteria-tips/#comment-6</link>
		<dc:creator>Digital Base</dc:creator>
		<pubDate>Wed, 12 Dec 2007 11:36:28 +0000</pubDate>
		<guid isPermaLink="false">http://mirthlab.com/2007/12/11/custom-propel-criteria-tips/#comment-6</guid>
		<description>Very nice tip ! Thanks alot !
I didn't know about those random criteria</description>
		<content:encoded><![CDATA[<p>Very nice tip ! Thanks alot !<br />
I didn&#8217;t know about those random criteria</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Quezada</title>
		<link>http://blog.mirthlab.com/2007/12/11/custom-propel-criteria-tips/#comment-5</link>
		<dc:creator>Mark Quezada</dc:creator>
		<pubDate>Wed, 12 Dec 2007 08:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://mirthlab.com/2007/12/11/custom-propel-criteria-tips/#comment-5</guid>
		<description>Yeah, that may be a disadvantage, but really, how often do you switch database types in the middle of a project? Database abstraction is a great selling point for tools like Propel, but I think the reality is that it's highly unlikely that most people will ever switch a project over to a new database once they've chosen something. Even so, these are small things and I think the benefit of writing them this way are much greater (both from a performance and coding standpoint) than the hassle it would be to write it so that it's fully abstracted. I'd love to be proven wrong though! If there's an easy way to do this without tying it to MySQL specifically, please let me know.</description>
		<content:encoded><![CDATA[<p>Yeah, that may be a disadvantage, but really, how often do you switch database types in the middle of a project? Database abstraction is a great selling point for tools like Propel, but I think the reality is that it&#8217;s highly unlikely that most people will ever switch a project over to a new database once they&#8217;ve chosen something. Even so, these are small things and I think the benefit of writing them this way are much greater (both from a performance and coding standpoint) than the hassle it would be to write it so that it&#8217;s fully abstracted. I&#8217;d love to be proven wrong though! If there&#8217;s an easy way to do this without tying it to MySQL specifically, please let me know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NiKo</title>
		<link>http://blog.mirthlab.com/2007/12/11/custom-propel-criteria-tips/#comment-4</link>
		<dc:creator>NiKo</dc:creator>
		<pubDate>Wed, 12 Dec 2007 07:17:50 +0000</pubDate>
		<guid isPermaLink="false">http://mirthlab.com/2007/12/11/custom-propel-criteria-tips/#comment-4</guid>
		<description>Cool but here you loose the advantage of database abstraction as these instructions are mysql specific. Anyway this can greatly help.</description>
		<content:encoded><![CDATA[<p>Cool but here you loose the advantage of database abstraction as these instructions are mysql specific. Anyway this can greatly help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.241 seconds -->
