<?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: One to Many with Zend_Db</title>
	<atom:link href="http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/</link>
	<description>free Zend Framework screencasts. Video tutorials to get you up to speed with different parts of the Zend Framework and enterprise PHP development.</description>
	<lastBuildDate>Wed, 01 Feb 2012 00:49:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Pip</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-9597</link>
		<dc:creator>Pip</dc:creator>
		<pubDate>Wed, 18 Aug 2010 03:47:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-9597</guid>
		<description>Did anyone get this working with 1.10?</description>
		<content:encoded><![CDATA[<p>Did anyone get this working with 1.10?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick de Graaf</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-8913</link>
		<dc:creator>Rick de Graaf</dc:creator>
		<pubDate>Thu, 29 Jul 2010 13:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-8913</guid>
		<description>Hi,

First of all thanks for the wonderful video&#039;s, I&#039;m learning a lot!

But I have a question:

On my index, I want to display the contacttype besides the name. Now I&#039;m using a foreach on standard info. How do I mix these together to display the names from both the tables?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>First of all thanks for the wonderful video&#8217;s, I&#8217;m learning a lot!</p>
<p>But I have a question:</p>
<p>On my index, I want to display the contacttype besides the name. Now I&#8217;m using a foreach on standard info. How do I mix these together to display the names from both the tables?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Lightbody</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-8737</link>
		<dc:creator>Eric Lightbody</dc:creator>
		<pubDate>Fri, 23 Jul 2010 15:26:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-8737</guid>
		<description>Oh my gosh! You opened up a new world to me. I&#039;ve been coding queries manually using (don&#039;t laugh) vbscript and to see the relations laid out through Zend Framework was absolutely awesome to see! Thank so much!</description>
		<content:encoded><![CDATA[<p>Oh my gosh! You opened up a new world to me. I&#8217;ve been coding queries manually using (don&#8217;t laugh) vbscript and to see the relations laid out through Zend Framework was absolutely awesome to see! Thank so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: djfly</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-7007</link>
		<dc:creator>djfly</dc:creator>
		<pubDate>Wed, 28 Apr 2010 20:35:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-7007</guid>
		<description>Where is in svn delete.phtml?</description>
		<content:encoded><![CDATA[<p>Where is in svn delete.phtml?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-6917</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Tue, 27 Apr 2010 15:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-6917</guid>
		<description>Hi Niels,

obviously the former approach will be slower since you&#039;re essentially making a separate transaction for each call and you&#039;re generating many more queries. This is where a proper ORM helps a lot since it will (or should) cache repeat queries that rely on a particular relation. Handling the joins yourself can be tedious since it pulls you outside of the object model and into a db relational model.</description>
		<content:encoded><![CDATA[<p>Hi Niels,</p>
<p>obviously the former approach will be slower since you&#8217;re essentially making a separate transaction for each call and you&#8217;re generating many more queries. This is where a proper ORM helps a lot since it will (or should) cache repeat queries that rely on a particular relation. Handling the joins yourself can be tedious since it pulls you outside of the object model and into a db relational model.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gatakka</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-6780</link>
		<dc:creator>gatakka</dc:creator>
		<pubDate>Thu, 22 Apr 2010 18:27:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-6780</guid>
		<description>First, great tutorials. Thank you.
I am wondering why everybody is running away from SQL.
Why all new developers do not use pure SQL and go for some strange abstraction that require complexly new skills, and make things so difficult and kill performance.
I newer see somebody to change DB vendor on running project, and i am in this business for a long time.
Just want to know your opinion, because i really do not understand why when SQL is abstraction itself, you wrap it whit another layer of abstraction (most of the time 2-3 layers)
Thank you!</description>
		<content:encoded><![CDATA[<p>First, great tutorials. Thank you.<br />
I am wondering why everybody is running away from SQL.<br />
Why all new developers do not use pure SQL and go for some strange abstraction that require complexly new skills, and make things so difficult and kill performance.<br />
I newer see somebody to change DB vendor on running project, and i am in this business for a long time.<br />
Just want to know your opinion, because i really do not understand why when SQL is abstraction itself, you wrap it whit another layer of abstraction (most of the time 2-3 layers)<br />
Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shaded</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-6380</link>
		<dc:creator>shaded</dc:creator>
		<pubDate>Mon, 29 Mar 2010 22:06:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-6380</guid>
		<description>any idea why im getting a Cannot redeclare class UsersTable error when i try to use the findDependentRowset method?</description>
		<content:encoded><![CDATA[<p>any idea why im getting a Cannot redeclare class UsersTable error when i try to use the findDependentRowset method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miholeus</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-6244</link>
		<dc:creator>miholeus</dc:creator>
		<pubDate>Sun, 21 Mar 2010 11:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-6244</guid>
		<description>Niels, they are not slow. You just do a lot of sql queries in the loop, that&#039;s the reason.</description>
		<content:encoded><![CDATA[<p>Niels, they are not slow. You just do a lot of sql queries in the loop, that&#8217;s the reason.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niels</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-5579</link>
		<dc:creator>Niels</dc:creator>
		<pubDate>Tue, 23 Feb 2010 15:29:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-5579</guid>
		<description>Hey Jon,

what are your ideas with regard to Zend_Db_Table and speed. I&#039;m currently doing some research on one to many and many to many relations with Zend_Db_Table. 

Using examples like yours or the ones given in the Zend Framework Reference guide, I see a dramatic performace with regard to speed.

If I for instance have tables

A
B
and AB

where AB defines the many to many relationship between A and B (two identifier colums in AB, namely Aid and Bid, both function as joined primary key, both in Foreign Keys to the respective tables)

Now I&#039;ve got the Model structure set up as supposed and everything works fine. But then I do 

$result = A-&gt;fetchAll()
foreach($result as $row){
    $details = $row-&gt;findManyToManyRowset(&#039;B&#039;, &#039;AB&#039;);
    foreach($details as $detail){
      ...echo something...
    }
}

If I do this for let&#039;s say 150 parentrows with an average of 3 child rows this operation takes a whopping 13 seconds. If I do a join statement in parent&#039;s foreach loop, if finishes in 1-2 seconds...

Relations with Zend_Db_Table are SLOW</description>
		<content:encoded><![CDATA[<p>Hey Jon,</p>
<p>what are your ideas with regard to Zend_Db_Table and speed. I&#8217;m currently doing some research on one to many and many to many relations with Zend_Db_Table. </p>
<p>Using examples like yours or the ones given in the Zend Framework Reference guide, I see a dramatic performace with regard to speed.</p>
<p>If I for instance have tables</p>
<p>A<br />
B<br />
and AB</p>
<p>where AB defines the many to many relationship between A and B (two identifier colums in AB, namely Aid and Bid, both function as joined primary key, both in Foreign Keys to the respective tables)</p>
<p>Now I&#8217;ve got the Model structure set up as supposed and everything works fine. But then I do </p>
<p>$result = A-&gt;fetchAll()<br />
foreach($result as $row){<br />
    $details = $row-&gt;findManyToManyRowset(&#8216;B&#8217;, &#8216;AB&#8217;);<br />
    foreach($details as $detail){<br />
      &#8230;echo something&#8230;<br />
    }<br />
}</p>
<p>If I do this for let&#8217;s say 150 parentrows with an average of 3 child rows this operation takes a whopping 13 seconds. If I do a join statement in parent&#8217;s foreach loop, if finishes in 1-2 seconds&#8230;</p>
<p>Relations with Zend_Db_Table are SLOW</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Russ</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-4534</link>
		<dc:creator>Russ</dc:creator>
		<pubDate>Sat, 09 Jan 2010 23:13:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-4534</guid>
		<description>I&#039;m getting everything to work as it should in the tutorial; however, I&#039;m trying to understand how the GetContactTypeByName($name) function is returning more than one row in the view from the database using fetchrow() in the UserService.  The reference manual says fetchrow() should return the first row only and in other scripts I&#039;ve been writing, it does just that.  I just want to understand where in the tutorial you got around that.</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting everything to work as it should in the tutorial; however, I&#8217;m trying to understand how the GetContactTypeByName($name) function is returning more than one row in the view from the database using fetchrow() in the UserService.  The reference manual says fetchrow() should return the first row only and in other scripts I&#8217;ve been writing, it does just that.  I just want to understand where in the tutorial you got around that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JesusWasPortuguese</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-3902</link>
		<dc:creator>JesusWasPortuguese</dc:creator>
		<pubDate>Sun, 13 Dec 2009 22:20:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-3902</guid>
		<description>Too much, too confusing. Got little of it mate.
My point was to understand how to map the DB to the models, and then how to use it on the controllers. I must say i&#039;ve learned quite a bit over all the casts, but not this bit mate.
Thanks anyway</description>
		<content:encoded><![CDATA[<p>Too much, too confusing. Got little of it mate.<br />
My point was to understand how to map the DB to the models, and then how to use it on the controllers. I must say i&#8217;ve learned quite a bit over all the casts, but not this bit mate.<br />
Thanks anyway</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Lorriman</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-3737</link>
		<dc:creator>Bob Lorriman</dc:creator>
		<pubDate>Sat, 05 Dec 2009 01:12:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-3737</guid>
		<description>Another great tutorial - Thanks Jon.

Everything works like a charm - right up to the end.  When I click on the ContactType (ie: Business, Other or Personal), it always defaults to the first one &quot;Business&quot;.

I&#039;ve check all the code (I think) as well as the database and I just can&#039;t see the problem.

Anybody else come across this?</description>
		<content:encoded><![CDATA[<p>Another great tutorial &#8211; Thanks Jon.</p>
<p>Everything works like a charm &#8211; right up to the end.  When I click on the ContactType (ie: Business, Other or Personal), it always defaults to the first one &#8220;Business&#8221;.</p>
<p>I&#8217;ve check all the code (I think) as well as the database and I just can&#8217;t see the problem.</p>
<p>Anybody else come across this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-2874</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Thu, 01 Oct 2009 12:06:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-2874</guid>
		<description>Hey Seb,

I haven&#039;t touched Zend_Db_Table in 1.9, however I think I read something about how the model_ prefix isn&#039;t required. I believe someone posted about this on the Zendcasts forum a couple weeks back. Hopefully, all this will be sorted once PHP 5.3 is adopted and we have proper namespacing.</description>
		<content:encoded><![CDATA[<p>Hey Seb,</p>
<p>I haven&#8217;t touched Zend_Db_Table in 1.9, however I think I read something about how the model_ prefix isn&#8217;t required. I believe someone posted about this on the Zendcasts forum a couple weeks back. Hopefully, all this will be sorted once PHP 5.3 is adopted and we have proper namespacing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seb</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-2870</link>
		<dc:creator>Seb</dc:creator>
		<pubDate>Thu, 01 Oct 2009 10:34:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-2870</guid>
		<description>Hi Jon,

I got an issue at the end of this tutorial and i think this is something about the new framework 1.9. In fact from the beginning of this tutorial i have to name my models &quot;Default_Model_ContactTypesTable&quot; (which is really annoying) to make things work properly.
And when i use findDependentRowset(&#039;UsersTable&#039;) i&#039;ve got an error that i didn&#039;t manage to solve : Message: File &quot;UsersTable.php&quot; does not exist or class &quot;UsersTable&quot; was not found in the file

Of course UsersTable.php exist :p

Any idea ? 

Thank you.

Seb.</description>
		<content:encoded><![CDATA[<p>Hi Jon,</p>
<p>I got an issue at the end of this tutorial and i think this is something about the new framework 1.9. In fact from the beginning of this tutorial i have to name my models &#8220;Default_Model_ContactTypesTable&#8221; (which is really annoying) to make things work properly.<br />
And when i use findDependentRowset(&#8216;UsersTable&#8217;) i&#8217;ve got an error that i didn&#8217;t manage to solve : Message: File &#8220;UsersTable.php&#8221; does not exist or class &#8220;UsersTable&#8221; was not found in the file</p>
<p>Of course UsersTable.php exist :p</p>
<p>Any idea ? </p>
<p>Thank you.</p>
<p>Seb.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ricardo</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-2292</link>
		<dc:creator>ricardo</dc:creator>
		<pubDate>Thu, 27 Aug 2009 19:21:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-2292</guid>
		<description>Hi,

telling you up front: great tutorial!
Besides your introduction of the service layer, you mention the use of domain driven principles like repositories and unit of work. Is it possible to do  a tutorial where those principles (like factories, repositories, unit of work, etc..) are exposed? 

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>telling you up front: great tutorial!<br />
Besides your introduction of the service layer, you mention the use of domain driven principles like repositories and unit of work. Is it possible to do  a tutorial where those principles (like factories, repositories, unit of work, etc..) are exposed? </p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-1967</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Fri, 31 Jul 2009 14:58:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-1967</guid>
		<description>Hi Benjamin,

You&#039;re absolutely correct! This video was done with the intent of showing the Zend_Db_Table functionality, unfortunately I didn&#039;t get to really build on the service layer concept due to time. In production, I would probably keep the responsibility for OR-mapping in the models. The service layer is really just a primitive implementation of the Repository concept. Ideally, if this was a larger application, I would suggest using a Repository with a UnitOfWork that would isolate transactions and object creation / persistence. The upper tier would only be concerned with querying the Repository for objects and then passing them back.</description>
		<content:encoded><![CDATA[<p>Hi Benjamin,</p>
<p>You&#8217;re absolutely correct! This video was done with the intent of showing the Zend_Db_Table functionality, unfortunately I didn&#8217;t get to really build on the service layer concept due to time. In production, I would probably keep the responsibility for OR-mapping in the models. The service layer is really just a primitive implementation of the Repository concept. Ideally, if this was a larger application, I would suggest using a Repository with a UnitOfWork that would isolate transactions and object creation / persistence. The upper tier would only be concerned with querying the Repository for objects and then passing them back.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-1966</link>
		<dc:creator>Benjamin</dc:creator>
		<pubDate>Fri, 31 Jul 2009 13:47:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-1966</guid>
		<description>Hi,

I&#039;m wondering why you are using current() and findDependentRowset()methods directly from action controller.
In that case you&#039;re losing the benefit of the Service Layer which is to uncouple application logic and persistence (Zend_Db).
There, you&#039;re just using Zend_Db_Table methods from controller.
Or maybe it was to just get to the point with findDependentRowset and you decided to not specify this detail (but still important). If that&#039;s it, i&#039;m sorry for disturbing :)

Cya,

Benjamin.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m wondering why you are using current() and findDependentRowset()methods directly from action controller.<br />
In that case you&#8217;re losing the benefit of the Service Layer which is to uncouple application logic and persistence (Zend_Db).<br />
There, you&#8217;re just using Zend_Db_Table methods from controller.<br />
Or maybe it was to just get to the point with findDependentRowset and you decided to not specify this detail (but still important). If that&#8217;s it, i&#8217;m sorry for disturbing <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cya,</p>
<p>Benjamin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliot Yap</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-1525</link>
		<dc:creator>Elliot Yap</dc:creator>
		<pubDate>Tue, 07 Jul 2009 14:16:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-1525</guid>
		<description>Hi, Jon, I will Check it out. Thanks for your Reply =D
Your ZendCast Is really helpful.
Have a nice day!</description>
		<content:encoded><![CDATA[<p>Hi, Jon, I will Check it out. Thanks for your Reply =D<br />
Your ZendCast Is really helpful.<br />
Have a nice day!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-1523</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Tue, 07 Jul 2009 13:34:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-1523</guid>
		<description>Hey Elliot, those two variables are used for running the findDependentRowset methods in Zend_Db. We use them for establishing the relationship and making those queries run without actually doing the joins ourselves</description>
		<content:encoded><![CDATA[<p>Hey Elliot, those two variables are used for running the findDependentRowset methods in Zend_Db. We use them for establishing the relationship and making those queries run without actually doing the joins ourselves</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliot Yap</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-1520</link>
		<dc:creator>Elliot Yap</dc:creator>
		<pubDate>Tue, 07 Jul 2009 07:22:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-1520</guid>
		<description>I don&#039;t understand why you create the protected $_referenceMap in the UsersTable but you didn&#039;t use it. and also the $_dependentTables in the ContactTypeTable

I thought it will be some useful trick at beginning.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand why you create the protected $_referenceMap in the UsersTable but you didn&#8217;t use it. and also the $_dependentTables in the ContactTypeTable</p>
<p>I thought it will be some useful trick at beginning.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-1428</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Sun, 28 Jun 2009 21:31:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-1428</guid>
		<description>Hey Russ,

I would double check the code sample:

http://code.google.com/p/zendcasts/source/browse/trunk/ep20-one-to-many-with-zend-db/application/default/models/ContactTypesTable.php

and 

http://code.google.com/p/zendcasts/source/browse/trunk/ep20-one-to-many-with-zend-db/application/default/models/UsersTable.php</description>
		<content:encoded><![CDATA[<p>Hey Russ,</p>
<p>I would double check the code sample:</p>
<p><a href="http://code.google.com/p/zendcasts/source/browse/trunk/ep20-one-to-many-with-zend-db/application/default/models/ContactTypesTable.php" rel="nofollow">http://code.google.com/p/zendcasts/source/browse/trunk/ep20-one-to-many-with-zend-db/application/default/models/ContactTypesTable.php</a></p>
<p>and </p>
<p><a href="http://code.google.com/p/zendcasts/source/browse/trunk/ep20-one-to-many-with-zend-db/application/default/models/UsersTable.php" rel="nofollow">http://code.google.com/p/zendcasts/source/browse/trunk/ep20-one-to-many-with-zend-db/application/default/models/UsersTable.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Russ</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-1426</link>
		<dc:creator>Russ</dc:creator>
		<pubDate>Sun, 28 Jun 2009 20:28:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-1426</guid>
		<description>I got to the end of this screencast and ended up with the following exception:  

No reference from table UsersTable to table ContactTypesTable 


I&#039;m unfortunately stumped.  Any ideas?</description>
		<content:encoded><![CDATA[<p>I got to the end of this screencast and ended up with the following exception:  </p>
<p>No reference from table UsersTable to table ContactTypesTable </p>
<p>I&#8217;m unfortunately stumped.  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-1399</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Fri, 26 Jun 2009 13:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-1399</guid>
		<description>@star: look at Doctrine ;)</description>
		<content:encoded><![CDATA[<p>@star: look at Doctrine <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: star</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-1388</link>
		<dc:creator>star</dc:creator>
		<pubDate>Fri, 26 Jun 2009 07:16:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-1388</guid>
		<description>Good video, i haven&#039;t much used the Zend_Db as it really looks difficult and pain to use.

More on video, you could talk more on the dependentRowset and the magic functions.</description>
		<content:encoded><![CDATA[<p>Good video, i haven&#8217;t much used the Zend_Db as it really looks difficult and pain to use.</p>
<p>More on video, you could talk more on the dependentRowset and the magic functions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-1216</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Mon, 08 Jun 2009 23:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-1216</guid>
		<description>Hi Splendid,
A better query then a fetchAll would be one where you specify specific columns in your Select. 
There&#039;s an example (15.48) in &lt;a href=&quot;http://framework.zend.com/manual/en/zend.db.select.html&quot; rel=&quot;nofollow&quot;&gt;the zend docs&lt;/a&gt; that should be a good guide:

$select = $db-&gt;select()
    -&gt;from( ...specify table and columns... )
    -&gt;where( ...specify search criteria... )
    -&gt;order( ...specify sorting criteria... );</description>
		<content:encoded><![CDATA[<p>Hi Splendid,<br />
A better query then a fetchAll would be one where you specify specific columns in your Select.<br />
There&#8217;s an example (15.48) in <a href="http://framework.zend.com/manual/en/zend.db.select.html" rel="nofollow">the zend docs</a> that should be a good guide:</p>
<p>$select = $db->select()<br />
    ->from( &#8230;specify table and columns&#8230; )<br />
    ->where( &#8230;specify search criteria&#8230; )<br />
    ->order( &#8230;specify sorting criteria&#8230; );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Splendid</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-1211</link>
		<dc:creator>Splendid</dc:creator>
		<pubDate>Sun, 07 Jun 2009 18:00:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-1211</guid>
		<description>Hi Jon,

Here is one question, and I think it is easy.
I was wondering how to print category name in view if u are just sending users to view with fetchAll() method ?

I know that u can use some method call in view which will return category name on its id but I wanna know what is the best way!?</description>
		<content:encoded><![CDATA[<p>Hi Jon,</p>
<p>Here is one question, and I think it is easy.<br />
I was wondering how to print category name in view if u are just sending users to view with fetchAll() method ?</p>
<p>I know that u can use some method call in view which will return category name on its id but I wanna know what is the best way!?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-494</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Mon, 11 May 2009 04:14:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-494</guid>
		<description>Yuri:

good point! However, I don&#039;t think its wise to make the assumption that your collation will always be so lax. I&#039;m not a db expert (I&#039;m a big fan of tools that abstract the developer away from database implementations), so thanks for mentioning this!</description>
		<content:encoded><![CDATA[<p>Yuri:</p>
<p>good point! However, I don&#8217;t think its wise to make the assumption that your collation will always be so lax. I&#8217;m not a db expert (I&#8217;m a big fan of tools that abstract the developer away from database implementations), so thanks for mentioning this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-493</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Mon, 11 May 2009 04:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-493</guid>
		<description>I use Consolas!</description>
		<content:encoded><![CDATA[<p>I use Consolas!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yury</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-449</link>
		<dc:creator>Yury</dc:creator>
		<pubDate>Sat, 09 May 2009 15:57:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-449</guid>
		<description>Hi,
First of all, thanks for the grate videos, I&#039;ve saw a link to that website in some PHP forum, and i very enjoyed few of your videos.

At getContactTypeByName, you dont need to lower the case, since you&#039;re using the latin1_swidish_ci (as seen at the phpMyAdmin) the ci means Case Insensetive, and therefore:
mysql&gt; SELECT &#039;NAME&#039; = &#039;name&#039;;
+-----------------+
&#124; &#039;NAME&#039; = &#039;name&#039; &#124;
+-----------------+
&#124;               1 &#124;
+-----------------+
1 row in set (0.00 sec)

without changing the case, unless i&#039;m missing something =)</description>
		<content:encoded><![CDATA[<p>Hi,<br />
First of all, thanks for the grate videos, I&#8217;ve saw a link to that website in some PHP forum, and i very enjoyed few of your videos.</p>
<p>At getContactTypeByName, you dont need to lower the case, since you&#8217;re using the latin1_swidish_ci (as seen at the phpMyAdmin) the ci means Case Insensetive, and therefore:<br />
mysql&gt; SELECT &#8216;NAME&#8217; = &#8216;name&#8217;;<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| &#8216;NAME&#8217; = &#8216;name&#8217; |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
|               1 |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
1 row in set (0.00 sec)</p>
<p>without changing the case, unless i&#8217;m missing something =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-419</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Fri, 08 May 2009 17:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-419</guid>
		<description>Good Work. What font do you use in the editor?</description>
		<content:encoded><![CDATA[<p>Good Work. What font do you use in the editor?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-382</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Thu, 07 May 2009 16:24:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-382</guid>
		<description>Zend Studio. I think I&#039;ll be using both interchangeably depending on what I&#039;m using professionally.</description>
		<content:encoded><![CDATA[<p>Zend Studio. I think I&#8217;ll be using both interchangeably depending on what I&#8217;m using professionally.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-372</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Thu, 07 May 2009 09:04:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-372</guid>
		<description>Fadel,

You don&#039;t need an credit card. You can use your bank account as well. Just look for more information at http://paypal.com/

---

Thanks for the nice tutorial again.

Only i use the model and zend db on an other way.</description>
		<content:encoded><![CDATA[<p>Fadel,</p>
<p>You don&#8217;t need an credit card. You can use your bank account as well. Just look for more information at <a href="http://paypal.com/" rel="nofollow">http://paypal.com/</a></p>
<p>&#8212;</p>
<p>Thanks for the nice tutorial again.</p>
<p>Only i use the model and zend db on an other way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fadel</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-320</link>
		<dc:creator>Fadel</dc:creator>
		<pubDate>Tue, 05 May 2009 13:56:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-320</guid>
		<description>thank you

im from morocco ican&#039;t support you because we have no international credit card :-(, you can put same AdSense</description>
		<content:encoded><![CDATA[<p>thank you</p>
<p>im from morocco ican&#8217;t support you because we have no international credit card <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> , you can put same AdSense</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arash Akbarpour</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-313</link>
		<dc:creator>Arash Akbarpour</dc:creator>
		<pubDate>Tue, 05 May 2009 09:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-313</guid>
		<description>Hi there

Have not seen this video yet.just during downloading thi video i wana appreciate your struggle.I am sure this podcast is neat and clear as former ones.keep good working.</description>
		<content:encoded><![CDATA[<p>Hi there</p>
<p>Have not seen this video yet.just during downloading thi video i wana appreciate your struggle.I am sure this podcast is neat and clear as former ones.keep good working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pacek</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-293</link>
		<dc:creator>Pacek</dc:creator>
		<pubDate>Mon, 04 May 2009 18:33:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-293</guid>
		<description>btw: are you using netbeans with some ZF plugin or Zend studio?</description>
		<content:encoded><![CDATA[<p>btw: are you using netbeans with some ZF plugin or Zend studio?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pacek</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/comment-page-1/#comment-292</link>
		<dc:creator>Pacek</dc:creator>
		<pubDate>Mon, 04 May 2009 18:32:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=185#comment-292</guid>
		<description>Great one, as per usual.</description>
		<content:encoded><![CDATA[<p>Great one, as per usual.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

