<?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: Multilanguage models in zend framework using Zend_Db_Table</title>
	<atom:link href="http://www.gsdesign.ro/blog/multilanguage-models-in-zend-framework-using-zend_db_table/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gsdesign.ro/blog/multilanguage-models-in-zend-framework-using-zend_db_table/</link>
	<description>Just another developer blog</description>
	<lastBuildDate>Wed, 17 Mar 2010 08:39:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jorge</title>
		<link>http://www.gsdesign.ro/blog/multilanguage-models-in-zend-framework-using-zend_db_table/comment-page-1/#comment-7574</link>
		<dc:creator>Jorge</dc:creator>
		<pubDate>Fri, 29 May 2009 06:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=333#comment-7574</guid>
		<description>Good post. Useful.
I have detected a bug in the insert function. In order to use Zend_Db_Table_Row, Insert must return the pk or array of primary keys. If is an autoincrement, must return lastInsertId of the query. Else, you could end with &quot;Row cannot be refreshed because the parent id is missing&quot; exception.

In the  update method, must return the rows affected, and be sure you use an Array, or get some funny SQLs, at &lt;&gt; because php treats array indexes in strings as the characters.
So you could add something like:

&lt;code&gt;
if (is_string($where)){
       $where=array($where);
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Good post. Useful.<br />
I have detected a bug in the insert function. In order to use Zend_Db_Table_Row, Insert must return the pk or array of primary keys. If is an autoincrement, must return lastInsertId of the query. Else, you could end with &#8220;Row cannot be refreshed because the parent id is missing&#8221; exception.</p>
<p>In the  update method, must return the rows affected, and be sure you use an Array, or get some funny SQLs, at &lt;&gt; because php treats array indexes in strings as the characters.<br />
So you could add something like:</p>
<p><code><br />
if (is_string($where)){<br />
       $where=array($where);<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabi Solomon</title>
		<link>http://www.gsdesign.ro/blog/multilanguage-models-in-zend-framework-using-zend_db_table/comment-page-1/#comment-7395</link>
		<dc:creator>Gabi Solomon</dc:creator>
		<pubDate>Thu, 05 Mar 2009 10:43:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=333#comment-7395</guid>
		<description>thank you ... its was a bad filter that replaced them</description>
		<content:encoded><![CDATA[<p>thank you &#8230; its was a bad filter that replaced them</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zh0rzh</title>
		<link>http://www.gsdesign.ro/blog/multilanguage-models-in-zend-framework-using-zend_db_table/comment-page-1/#comment-7394</link>
		<dc:creator>Zh0rzh</dc:creator>
		<pubDate>Thu, 05 Mar 2009 07:00:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=333#comment-7394</guid>
		<description>You have something wrong with the source. Poor formatting, &quot;-&gt;&quot; instead of &quot;-&gt;&quot;, etc.</description>
		<content:encoded><![CDATA[<p>You have something wrong with the source. Poor formatting, &#8220;-&gt;&#8221; instead of &#8220;-&gt;&#8221;, etc.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
