<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.8.4" -->
<rss version="0.92">
<channel>
	<title>Digital Base - Blog &#187; propel</title>
	<link>http://www.digitalbase.eu/blog</link>
	<description>A blog about webdesign, PHP, development and IT</description>
	<lastBuildDate>Mon, 10 May 2010 16:16:55 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Simplifying Queries: Using sum, count, etc in Propel 1.3</title>
		<description>My old post handled Propel 1.2.

This is the way to do it in Propel 1.3
    
    $c = new Criteria();
    $c->add(FavoriteDatePeer::EVENTDATAPROPOSAL_ID, $this->getId());
    $c->addSelectColumn("SUM(".FavoriteDatePeer::SCORE.") as rank");

    $stmt = FavoriteDatePeer::doSelectStmt($c);
    $row = $stmt->fetch();
  ...</description>
		<link>http://www.digitalbase.eu/blog/simplifying-queries-using-sum-count-etc-in-propel-13/</link>
			</item>
	<item>
		<title>Xajax driven CriteriaBuilder for Propel / php</title>
		<description>Earlier this week, I talked about our custom datagrid for Propel and
how it was being rewritten to interact with our CriteriaBuilder (read
more). Well, I'll give you another glance into our coding
efforts.
Goal
We wanted to make
an object, which would manipulate the data being shown in our
grid_propel. For normal people, this means: to ...</description>
		<link>http://www.digitalbase.eu/blog/xajax-driven-criteriabuilder-for-propel-php/</link>
			</item>
	<item>
		<title>Symfony / Propel &#8211; Subquerys</title>
		<description>
To reduce the query count in your web application, you might consider using subqueries. I&#39;ll show you howto do that in propel/symfony : 

[code]propel - subqueries[/code]

It&#39;s that easy :)

 </description>
		<link>http://www.digitalbase.eu/blog/symfony-propel-subquerys/</link>
			</item>
	<item>
		<title>Simplifying Queries: Using sum, count, etc in Propel</title>
		<description>Simplifying Queries: Using sum, count, etc in Propel
$c-&#62;addSelectColumn('sum('.dbTimeBlockPeer::TOTAL.') as total');
$rs = dbTimeBlockPeer::doSelectRS($c);
while ($rs-&#62;next()) { $total = $rs-&#62;getInt(1); }
So, simply use addSelectColumn. You have to work with the ResultSet offcourse, since you won't be able to populateObjects.

In this case you can simply use '1' in getInt(column index), since we're sure only ...</description>
		<link>http://www.digitalbase.eu/blog/simplifying-queries-using-sum-count-etc-in-propel/</link>
			</item>
	<item>
		<title>Custom Propel Grid Update</title>
		<description>As you can read on Gijs' Lifelog, he started developing a custom datagrid a while ago. The idea was to create some kind of module/object, which would be used for generating datagrids fast, easy and intuitive, without too much code.

Over time, it has been extended and rewritten to interact with ...</description>
		<link>http://www.digitalbase.eu/blog/custom-propel-grid-update/</link>
			</item>
</channel>
</rss>

