<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Connecting the dots... &#187; propel</title>
	<atom:link href="http://blog.rajatpandit.com/tag/propel/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rajatpandit.com</link>
	<description>Thoughts on Web Development, Infrastructure and Application Scalability</description>
	<lastBuildDate>Thu, 29 Dec 2011 13:21:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>truncate table propel style.</title>
		<link>http://blog.rajatpandit.com/2009/07/30/truncate-table-propel-style/</link>
		<comments>http://blog.rajatpandit.com/2009/07/30/truncate-table-propel-style/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 13:37:31 +0000</pubDate>
		<dc:creator>rp</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[propel]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=362</guid>
		<description><![CDATA[a quick post to note how to truncate the table using propel:]]></description>
			<content:encoded><![CDATA[<p>a quick post to note how to truncate the table using propel:</p>
<pre class="brush: php; title: ; notranslate">
Propel::getConnection('connection_name')-&gt;executeUpdate('TRUNCATE TABLE put_table_name_here');
</pre>
<div id="in_post_ad_bottom_1" style="clear:both;margin:0;padding:0;"><div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-bp */
google_ad_slot = "7787511801";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-BP-1 */
google_ad_slot = "9111022353";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2009/07/30/truncate-table-propel-style/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing a Criteria statement for the IN Operator</title>
		<link>http://blog.rajatpandit.com/2009/04/16/writing-a-criteria-statement-for-the-in-operator/</link>
		<comments>http://blog.rajatpandit.com/2009/04/16/writing-a-criteria-statement-for-the-in-operator/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 23:20:51 +0000</pubDate>
		<dc:creator>rp</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[criteria]]></category>
		<category><![CDATA[propel]]></category>
		<category><![CDATA[sql statement]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=256</guid>
		<description><![CDATA[This is going to be a quick post as I needed to write this done as its quite useful for anyone who either doesnt like or doesnt understand how the...]]></description>
			<content:encoded><![CDATA[<p>This is going to be a quick post as I needed to write this done as its quite useful for anyone who either doesnt like or doesnt understand how the complex criteria objects work.</p>
<p>If you want to write code for a criteria object for the SQL statement which is something like this.</p>
<pre class="brush: sql; title: ; notranslate">
SELECT field1, field2 from table1 where field1 in (5,30,23)
</pre>
<p>The corresponding <code>PHP</code> for that would be as follows</p>
<pre class="brush: php; title: ; notranslate">
$values = array(5,30,23);
$criteria_for_select = new Criteria();
$c = new Criteria();
$criteria_for_select = $c-&gt;getNewCriterion(table1::field1, $values, Criteria::IN);
</pre>
<p>That&#8217;s pretty much it, now this criteria object <code>$criteria_for_select</code> can now be used in your <code>doSelectXXX</code> calls.</p>
<p>Another really cool app that automates the task of writing criteria object is availabile here.<br />
<a href="http://propel.jondh.me.uk/">http://propel.jondh.me.uk/</a></p>
<p>The cool thing about this utility is you drop in your selection condition and it will write the code for the criteria object for you, now that&#8217;s really cool.</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin:0;padding:0;"><div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-bp */
google_ad_slot = "7787511801";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-BP-1 */
google_ad_slot = "9111022353";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2009/04/16/writing-a-criteria-statement-for-the-in-operator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

