<?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: Deep Integration between Zend and Doctrine 1.2</title>
	<atom:link href="http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/</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: Sander</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-17882</link>
		<dc:creator>Sander</dc:creator>
		<pubDate>Wed, 27 Apr 2011 12:58:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-17882</guid>
		<description>If anyone is having troubles getting doctrine to work with MAMP and receiving errors similar to: &quot;PDO Connection Error: SQLSTATE[HY000] [2002] No such file or directory&quot;. You should append the &#039;--unix_socket&#039; option to your doctrine dsn string in application.ini as follows:

doctrine.dsn = &quot;mysql://user:password@localhost/test;unix_socket=/Applications/MAMP/tmp/mysql/mysql.sock&quot;</description>
		<content:encoded><![CDATA[<p>If anyone is having troubles getting doctrine to work with MAMP and receiving errors similar to: &#8220;PDO Connection Error: SQLSTATE[HY000] [2002] No such file or directory&#8221;. You should append the &#8216;&#8211;unix_socket&#8217; option to your doctrine dsn string in application.ini as follows:</p>
<p>doctrine.dsn = &#8220;mysql://user:password@localhost/test;unix_socket=/Applications/MAMP/tmp/mysql/mysql.sock&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-14809</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Tue, 25 Jan 2011 16:05:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-14809</guid>
		<description>@Jeffrey

Doctrine 2 is in many ways a rewrite of Doctrine. It&#039;s borrowing a lot of concepts from Hibernate, including a real query parser and the ability to write POPOs (Plain Old PHP Objects). Both of these features were lacking in Doctrine 1 and necessitated a lot of re-engineering and a focus on the Unit of Work pattern and an entity manager for handling transactions. They&#039;ve also created two projects: DBAL (database abstraction layer) and ORM (object relational mapper) in order to further separate persistence abstraction from relational mapping.

Hope that helps,
-
Jon</description>
		<content:encoded><![CDATA[<p>@Jeffrey</p>
<p>Doctrine 2 is in many ways a rewrite of Doctrine. It&#8217;s borrowing a lot of concepts from Hibernate, including a real query parser and the ability to write POPOs (Plain Old PHP Objects). Both of these features were lacking in Doctrine 1 and necessitated a lot of re-engineering and a focus on the Unit of Work pattern and an entity manager for handling transactions. They&#8217;ve also created two projects: DBAL (database abstraction layer) and ORM (object relational mapper) in order to further separate persistence abstraction from relational mapping.</p>
<p>Hope that helps,<br />
-<br />
Jon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeffery shipman</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-14668</link>
		<dc:creator>jeffery shipman</dc:creator>
		<pubDate>Fri, 21 Jan 2011 01:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-14668</guid>
		<description>@jon
After looking over Doctrine 2, it is not clear to me that the implementation is the same.   Do you have any recommendations?</description>
		<content:encoded><![CDATA[<p>@jon<br />
After looking over Doctrine 2, it is not clear to me that the implementation is the same.   Do you have any recommendations?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-14607</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Wed, 19 Jan 2011 06:52:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-14607</guid>
		<description>@Jeffery I think a mapped superclass would be perfect for what you&#039;re trying to do. I would suggest looking at Doctrine 2 integration.</description>
		<content:encoded><![CDATA[<p>@Jeffery I think a mapped superclass would be perfect for what you&#8217;re trying to do. I would suggest looking at Doctrine 2 integration.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffery Shipman</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-14589</link>
		<dc:creator>Jeffery Shipman</dc:creator>
		<pubDate>Tue, 18 Jan 2011 14:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-14589</guid>
		<description>I have been having difficulty unit testing with phpunit and doctrine on model classes that extend other model classes.  I have found on the doctrine website  (http://www.doctrine-project.org/documen … -to-models)  that &quot;Doctrine can not satisfy any inheritance and if your models extend another model, it cannot include them in the correct order so it is up to you to make sure all dependencies are satisfied in each class.&quot;
   This makes unit testing problematic for me.  I have many models that extend.  Putting require statements in each one seems a bit cumbersome. Does anyone have any solutions or resources to check out.  I have watched the ZC42 – Deep Integration between Zend and Doctrine 1.2 but this is not addressed as far as I can tell.</description>
		<content:encoded><![CDATA[<p>I have been having difficulty unit testing with phpunit and doctrine on model classes that extend other model classes.  I have found on the doctrine website  (<a href="http://www.doctrine-project.org/documen" rel="nofollow">http://www.doctrine-project.org/documen</a> … -to-models)  that &#8220;Doctrine can not satisfy any inheritance and if your models extend another model, it cannot include them in the correct order so it is up to you to make sure all dependencies are satisfied in each class.&#8221;<br />
   This makes unit testing problematic for me.  I have many models that extend.  Putting require statements in each one seems a bit cumbersome. Does anyone have any solutions or resources to check out.  I have watched the ZC42 – Deep Integration between Zend and Doctrine 1.2 but this is not addressed as far as I can tell.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: szsoftware</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-13045</link>
		<dc:creator>szsoftware</dc:creator>
		<pubDate>Wed, 01 Dec 2010 12:07:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-13045</guid>
		<description>@Jon

Although, zendcasts.com tutorials are freely available and made up by big efforts of you,
the last weeks I got a little disappointed because of no new content.

I hope you&#039;re alive and kicking?! Although (or because :-) ) the tutorials aren&#039;t perfect, sometimes I feel I&#039;m sitting with a buddy in a php hacking session to fight together against issues, haha.

Some warm words before christmas.

CU Sven</description>
		<content:encoded><![CDATA[<p>@Jon</p>
<p>Although, zendcasts.com tutorials are freely available and made up by big efforts of you,<br />
the last weeks I got a little disappointed because of no new content.</p>
<p>I hope you&#8217;re alive and kicking?! Although (or because <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ) the tutorials aren&#8217;t perfect, sometimes I feel I&#8217;m sitting with a buddy in a php hacking session to fight together against issues, haha.</p>
<p>Some warm words before christmas.</p>
<p>CU Sven</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: szsoftware</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-13044</link>
		<dc:creator>szsoftware</dc:creator>
		<pubDate>Wed, 01 Dec 2010 12:01:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-13044</guid>
		<description>@Frederic

Hi,
thats a good question. Did you fiddle with this and have some more findings about this issue?

I also find the Model_Foobar thing a little annoying.


CU Sven</description>
		<content:encoded><![CDATA[<p>@Frederic</p>
<p>Hi,<br />
thats a good question. Did you fiddle with this and have some more findings about this issue?</p>
<p>I also find the Model_Foobar thing a little annoying.</p>
<p>CU Sven</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frédéric Hébert</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-13006</link>
		<dc:creator>Frédéric Hébert</dc:creator>
		<pubDate>Tue, 30 Nov 2010 11:09:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-13006</guid>
		<description>Hi, 

 thanks A LOT for your very attractive screencast.

 I &#039;ve just a few questions : 

1°) as Norky seems to indicate, it is possible to load Doctrine models through the Zend autoloader mechanism. Why, then should we need to &quot;update&quot;  Doctrine_Core::ATTR_MODEL_LOADING attribute.

2°) AFAIC we can use the &quot;short&quot; form of models name in the yaml schema file. EG., in Doctrine internals there seems to be a mean to map the &quot;short&quot; form name to the &quot;classPrefix&quot; declared in application.ini file. Why, then should we have to use the long form of models name in the DQL declaration or in the fixture file ?

thx again for you screencast.</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p> thanks A LOT for your very attractive screencast.</p>
<p> I &#8216;ve just a few questions : </p>
<p>1°) as Norky seems to indicate, it is possible to load Doctrine models through the Zend autoloader mechanism. Why, then should we need to &#8220;update&#8221;  Doctrine_Core::ATTR_MODEL_LOADING attribute.</p>
<p>2°) AFAIC we can use the &#8220;short&#8221; form of models name in the yaml schema file. EG., in Doctrine internals there seems to be a mean to map the &#8220;short&#8221; form name to the &#8220;classPrefix&#8221; declared in application.ini file. Why, then should we have to use the long form of models name in the DQL declaration or in the fixture file ?</p>
<p>thx again for you screencast.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manish</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-11783</link>
		<dc:creator>manish</dc:creator>
		<pubDate>Tue, 02 Nov 2010 14:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-11783</guid>
		<description>Really great work,

Best tutorial I have ever seen...
Could you add something about using dojo or extjs with the zend framework.
so I can get the idea about creating desktop like application on web which consist good coding standard and UI like desktop .

Thanks in advance mate.</description>
		<content:encoded><![CDATA[<p>Really great work,</p>
<p>Best tutorial I have ever seen&#8230;<br />
Could you add something about using dojo or extjs with the zend framework.<br />
so I can get the idea about creating desktop like application on web which consist good coding standard and UI like desktop .</p>
<p>Thanks in advance mate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-11703</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sun, 31 Oct 2010 21:08:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-11703</guid>
		<description>Hi,
I have strange problem. When I create new instance of class, setup some parameters, save it and after that load from db, it returns only numbers. For example:
$u = new Model_User();
$u-&gt;name = &quot;user1&quot;;
$u-&gt;save();
$u2 = Doctrine_Query::create()-&gt;from(&#039;Model_User u&#039;)-&gt;where(&#039;u.id =?&#039;,1)-&gt;execute();
echo $u2-&gt;name; //it prints something like number &quot;3&quot;
when I call another parametr:
echo $u2-&gt;password; //it prints &quot;4&quot; 
echo $u2-&gt;email; //prints &quot;5&quot;
but if I call var_dump($u2-&gt;toArray());
it prints array of arrays with right values. So I would like to ask if anybody know what´s happening? Maybe it´s some misconfiguration, but I´m lost withnout error message:) And when I call var_dump(..) immediately after echo $u2-&gt;name, the array of arrays contains twice much values with second half null values. Thx for any kind of advice.
Tom</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have strange problem. When I create new instance of class, setup some parameters, save it and after that load from db, it returns only numbers. For example:<br />
$u = new Model_User();<br />
$u-&gt;name = &#8220;user1&#8243;;<br />
$u-&gt;save();<br />
$u2 = Doctrine_Query::create()-&gt;from(&#8216;Model_User u&#8217;)-&gt;where(&#8216;u.id =?&#8217;,1)-&gt;execute();<br />
echo $u2-&gt;name; //it prints something like number &#8220;3&#8243;<br />
when I call another parametr:<br />
echo $u2-&gt;password; //it prints &#8220;4&#8243;<br />
echo $u2-&gt;email; //prints &#8220;5&#8243;<br />
but if I call var_dump($u2-&gt;toArray());<br />
it prints array of arrays with right values. So I would like to ask if anybody know what´s happening? Maybe it´s some misconfiguration, but I´m lost withnout error message:) And when I call var_dump(..) immediately after echo $u2-&gt;name, the array of arrays contains twice much values with second half null values. Thx for any kind of advice.<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: szsoftware</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-11232</link>
		<dc:creator>szsoftware</dc:creator>
		<pubDate>Mon, 18 Oct 2010 11:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-11232</guid>
		<description>@samy

Doctrine 1.2.3
ZF 1.10

I had the same confusing behavior and always did two steps:
# ./doctrine generate-models yaml
#./doctrine BuildAllReload

Now I got rid of these and made changes of library/Doctrine/Task/BuildAllRebuild.php
Maybe there is a reason why the Doctrine Developers left the Task of Models Generating within BuildAllRebuild Task.
However, I (re?)added it:

diff --git a/library/Doctrine/Task/BuildAllReload.php b/library/Doctrine/Task/BuildAllReload.php
index f06475c..ccd95cc 100644
--- a/library/Doctrine/Task/BuildAllReload.php
+++ b/library/Doctrine/Task/BuildAllReload.php
@@ -39,16 +39,18 @@ class Doctrine_Task_BuildAllReload extends Doctrine_Task
     public function __construct($dispatcher = null)
     {
         parent::__construct($dispatcher);
-
+        $this-&gt;models = new Doctrine_Task_GenerateModelsYaml($this-&gt;dispatcher);
         $this-&gt;rebuildDb = new Doctrine_Task_RebuildDb($this-&gt;dispatcher);
         $this-&gt;loadData = new Doctrine_Task_LoadData($this-&gt;dispatcher);
         
-        $this-&gt;requiredArguments = array_merge($this-&gt;requiredArguments, $this-&gt;rebuildDb-&gt;requiredArguments, $this-&gt;loadData-&gt;requiredArguments);
-        $this-&gt;optionalArguments = array_merge($this-&gt;optionalArguments, $this-&gt;rebuildDb-&gt;optionalArguments, $this-&gt;loadData-&gt;optionalArguments);
+        $this-&gt;requiredArguments = array_merge($this-&gt;requiredArguments, $this-&gt;models-&gt;requiredArguments, $this-&gt;rebuildDb-&gt;requiredArguments, $this-&gt;loadData-&gt;requiredArguments);
+        $this-&gt;optionalArguments = array_merge($this-&gt;optionalArguments, $this-&gt;models-&gt;optionalArguments, $this-&gt;rebuildDb-&gt;optionalArguments, $this-&gt;loadData-&gt;optionalArguments);
     }
     
     public function execute()
-    {
+    {   $this-&gt;models-&gt;setArguments($this-&gt;getArguments());
+        $this-&gt;models-&gt;execute();
+
         $this-&gt;rebuildDb-&gt;setArguments($this-&gt;getArguments());
         $this-&gt;rebuildDb-&gt;execute();</description>
		<content:encoded><![CDATA[<p>@samy</p>
<p>Doctrine 1.2.3<br />
ZF 1.10</p>
<p>I had the same confusing behavior and always did two steps:<br />
# ./doctrine generate-models yaml<br />
#./doctrine BuildAllReload</p>
<p>Now I got rid of these and made changes of library/Doctrine/Task/BuildAllRebuild.php<br />
Maybe there is a reason why the Doctrine Developers left the Task of Models Generating within BuildAllRebuild Task.<br />
However, I (re?)added it:</p>
<p>diff &#8211;git a/library/Doctrine/Task/BuildAllReload.php b/library/Doctrine/Task/BuildAllReload.php<br />
index f06475c..ccd95cc 100644<br />
&#8212; a/library/Doctrine/Task/BuildAllReload.php<br />
+++ b/library/Doctrine/Task/BuildAllReload.php<br />
@@ -39,16 +39,18 @@ class Doctrine_Task_BuildAllReload extends Doctrine_Task<br />
     public function __construct($dispatcher = null)<br />
     {<br />
         parent::__construct($dispatcher);<br />
-<br />
+        $this-&gt;models = new Doctrine_Task_GenerateModelsYaml($this-&gt;dispatcher);<br />
         $this-&gt;rebuildDb = new Doctrine_Task_RebuildDb($this-&gt;dispatcher);<br />
         $this-&gt;loadData = new Doctrine_Task_LoadData($this-&gt;dispatcher);</p>
<p>-        $this-&gt;requiredArguments = array_merge($this-&gt;requiredArguments, $this-&gt;rebuildDb-&gt;requiredArguments, $this-&gt;loadData-&gt;requiredArguments);<br />
-        $this-&gt;optionalArguments = array_merge($this-&gt;optionalArguments, $this-&gt;rebuildDb-&gt;optionalArguments, $this-&gt;loadData-&gt;optionalArguments);<br />
+        $this-&gt;requiredArguments = array_merge($this-&gt;requiredArguments, $this-&gt;models-&gt;requiredArguments, $this-&gt;rebuildDb-&gt;requiredArguments, $this-&gt;loadData-&gt;requiredArguments);<br />
+        $this-&gt;optionalArguments = array_merge($this-&gt;optionalArguments, $this-&gt;models-&gt;optionalArguments, $this-&gt;rebuildDb-&gt;optionalArguments, $this-&gt;loadData-&gt;optionalArguments);<br />
     }</p>
<p>     public function execute()<br />
-    {<br />
+    {   $this-&gt;models-&gt;setArguments($this-&gt;getArguments());<br />
+        $this-&gt;models-&gt;execute();<br />
+<br />
         $this-&gt;rebuildDb-&gt;setArguments($this-&gt;getArguments());<br />
         $this-&gt;rebuildDb-&gt;execute();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: samy</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-10990</link>
		<dc:creator>samy</dc:creator>
		<pubDate>Wed, 06 Oct 2010 00:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-10990</guid>
		<description>Hi,

I follow this tutorial with doctrine version 1.2.3 and zf version 1.10.8. 
When I try the build-all-reload, the models classes aren&#039;t generated, but when I use build-all, the classes are generated.
It&#039;s not a big problem, but I can&#039;t figure it out why models classes can&#039;t be generated.

Thanks for your help ;)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I follow this tutorial with doctrine version 1.2.3 and zf version 1.10.8.<br />
When I try the build-all-reload, the models classes aren&#8217;t generated, but when I use build-all, the classes are generated.<br />
It&#8217;s not a big problem, but I can&#8217;t figure it out why models classes can&#8217;t be generated.</p>
<p>Thanks for your help <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thoer</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-10912</link>
		<dc:creator>Thoer</dc:creator>
		<pubDate>Sun, 03 Oct 2010 07:03:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-10912</guid>
		<description>@nORKy

thank you for this life-saving comment! It seems to be a very nice solution!</description>
		<content:encoded><![CDATA[<p>@nORKy</p>
<p>thank you for this life-saving comment! It seems to be a very nice solution!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tribesman</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-10705</link>
		<dc:creator>tribesman</dc:creator>
		<pubDate>Sat, 25 Sep 2010 21:22:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-10705</guid>
		<description>doctrine version 1.2.3
zf version 1.10.8
i have some error about class not found. i try many code but i didnt realize why it generate that error. i use xml format configuration and i copy this tutorials code, it works smootly.same code as yours and same version of doctrine both (last version 1.2.3). when i try to load at your schema.yml it works great but when i try to put my schema.yml(this files generated from db via doctrinecli) doctrine didnt create tables, it gives successfull message. when i generate models from db or yaml it doesnt matter doctrine cli starts giving fatal error class not found 
I can use models created via db in zend and getting results but i cant use relational save or get. Same yaml file generated from db  i can create db but cant create new  tables.
if anything wrong in yaml file why it gives error generate models via db :S 
i have unique multiplecolumns 2 or 3 tables did this make that error?
if i wrote yaml file i think about some wrong writing but it generates from db :S i am really confused</description>
		<content:encoded><![CDATA[<p>doctrine version 1.2.3<br />
zf version 1.10.8<br />
i have some error about class not found. i try many code but i didnt realize why it generate that error. i use xml format configuration and i copy this tutorials code, it works smootly.same code as yours and same version of doctrine both (last version 1.2.3). when i try to load at your schema.yml it works great but when i try to put my schema.yml(this files generated from db via doctrinecli) doctrine didnt create tables, it gives successfull message. when i generate models from db or yaml it doesnt matter doctrine cli starts giving fatal error class not found<br />
I can use models created via db in zend and getting results but i cant use relational save or get. Same yaml file generated from db  i can create db but cant create new  tables.<br />
if anything wrong in yaml file why it gives error generate models via db :S<br />
i have unique multiplecolumns 2 or 3 tables did this make that error?<br />
if i wrote yaml file i think about some wrong writing but it generates from db :S i am really confused</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rafael</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-10368</link>
		<dc:creator>Rafael</dc:creator>
		<pubDate>Mon, 13 Sep 2010 17:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-10368</guid>
		<description>Great job!!

Thanks from Brazil!</description>
		<content:encoded><![CDATA[<p>Great job!!</p>
<p>Thanks from Brazil!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francis</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-9312</link>
		<dc:creator>Francis</dc:creator>
		<pubDate>Tue, 10 Aug 2010 19:43:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-9312</guid>
		<description>...of course i should write it like this :

protected function _initDoctrine() 
{
     ...

     $conn-&gt;setCharset(&#039;UTF8&#039;);
     return $conn;
}</description>
		<content:encoded><![CDATA[<p>&#8230;of course i should write it like this :</p>
<p>protected function _initDoctrine()<br />
{<br />
     &#8230;</p>
<p>     $conn-&gt;setCharset(&#8216;UTF8&#8242;);<br />
     return $conn;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francis</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-9311</link>
		<dc:creator>Francis</dc:creator>
		<pubDate>Tue, 10 Aug 2010 19:39:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-9311</guid>
		<description>TIPS :

If you have problem with UTF-8 encoding inside your database. Especially for French or other characters like (é, à ù etc. ..)

Just before returning your connection in your in your bootstrap file, specify the encoding


_initDoctrine function {

...
$conn-&gt;setCharset(&#039;UTF8&#039;);
return $conn;
}</description>
		<content:encoded><![CDATA[<p>TIPS :</p>
<p>If you have problem with UTF-8 encoding inside your database. Especially for French or other characters like (é, à ù etc. ..)</p>
<p>Just before returning your connection in your in your bootstrap file, specify the encoding</p>
<p>_initDoctrine function {</p>
<p>&#8230;<br />
$conn-&gt;setCharset(&#8216;UTF8&#8242;);<br />
return $conn;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miha</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-8315</link>
		<dc:creator>Miha</dc:creator>
		<pubDate>Mon, 05 Jul 2010 14:43:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-8315</guid>
		<description>Hi!

Great casts! Thank you for them!
Can you make Doctrine 2.0 integration video?</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Great casts! Thank you for them!<br />
Can you make Doctrine 2.0 integration video?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arthur</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-8143</link>
		<dc:creator>Arthur</dc:creator>
		<pubDate>Fri, 25 Jun 2010 21:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-8143</guid>
		<description>I think I fixed this.  I just needed to change many of the references in bootstrap from Doctrine to Doctrine_Core.</description>
		<content:encoded><![CDATA[<p>I think I fixed this.  I just needed to change many of the references in bootstrap from Doctrine to Doctrine_Core.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arthur</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-8142</link>
		<dc:creator>Arthur</dc:creator>
		<pubDate>Fri, 25 Jun 2010 20:57:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-8142</guid>
		<description>Great video.

I&#039;m having tons of trouble getting this working.  I have latest Zend (1.10.x) and Doctrine (1.2) and I can&#039;t get it working.  NOTE: I&#039;m on Windows.  

I keep getting:
LogicException: Passed array does not specify an existing static method in C:\verisign\trusted\application\Bootstrap.php on line 15

and Warning: include_once() [function.include]: Failed opening &#039;Doctrine.php&#039; for inclusion 

I have under /library
/library/Zend
/library/Doctrine

Any suggestions?</description>
		<content:encoded><![CDATA[<p>Great video.</p>
<p>I&#8217;m having tons of trouble getting this working.  I have latest Zend (1.10.x) and Doctrine (1.2) and I can&#8217;t get it working.  NOTE: I&#8217;m on Windows.  </p>
<p>I keep getting:<br />
LogicException: Passed array does not specify an existing static method in C:\verisign\trusted\application\Bootstrap.php on line 15</p>
<p>and Warning: include_once() [function.include]: Failed opening &#8216;Doctrine.php&#8217; for inclusion </p>
<p>I have under /library<br />
/library/Zend<br />
/library/Doctrine</p>
<p>Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patois</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-8088</link>
		<dc:creator>Patois</dc:creator>
		<pubDate>Wed, 23 Jun 2010 13:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-8088</guid>
		<description>Hi there!

Great casts here. So far they&#039;ve been really helpful. I&#039;ve got a question though.

I&#039;ve integrated Doctrine &amp; Zend and I changed the class prefix for the Doctrine models to Model_ as suggested in this cast.

I&#039;m wondering if it is somehow possible to configure Doctrine to use that standard class prefix, so I can use the &#039;old&#039; class names in my queries without the prefix (i.e: User instead of Model_User)?
I can relate to the $user = new Model_User() as a classname, but somehow I find the Doctrine::getTable(&#039;Model_User&#039;)-&gt;findAll(); statement a bit odd.

I&#039;d prefer the Doctrine::getTable(&#039;User&#039;)-&gt;findAll(); statement with Doctrine configured to add the class prefix Model_ automatically.

Does anyone know if this is possible? Any help would be appreciated...</description>
		<content:encoded><![CDATA[<p>Hi there!</p>
<p>Great casts here. So far they&#8217;ve been really helpful. I&#8217;ve got a question though.</p>
<p>I&#8217;ve integrated Doctrine &amp; Zend and I changed the class prefix for the Doctrine models to Model_ as suggested in this cast.</p>
<p>I&#8217;m wondering if it is somehow possible to configure Doctrine to use that standard class prefix, so I can use the &#8216;old&#8217; class names in my queries without the prefix (i.e: User instead of Model_User)?<br />
I can relate to the $user = new Model_User() as a classname, but somehow I find the Doctrine::getTable(&#8216;Model_User&#8217;)-&gt;findAll(); statement a bit odd.</p>
<p>I&#8217;d prefer the Doctrine::getTable(&#8216;User&#8217;)-&gt;findAll(); statement with Doctrine configured to add the class prefix Model_ automatically.</p>
<p>Does anyone know if this is possible? Any help would be appreciated&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobi</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-7713</link>
		<dc:creator>Tobi</dc:creator>
		<pubDate>Mon, 07 Jun 2010 20:14:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-7713</guid>
		<description>Nice Vid!
I am also working on a Doctrine 1.2 / ZF integration right now. 
I have used Doctrine for the past 2 years now (before 1.0). You don&#039;t have to write your own findAll function, doctrine has one fore you (http://www.doctrine-project.org/projects/orm/1.2/docs/manual/dql-doctrine-query-language/en#magic-finders)
in your case u can simply write: 

Doctrine_Core::getTable(&#039;Model_Car&#039;)-&gt;findAll();

which will also work if you do not have generated the Table class.

most of the time i use this only for building the views, cause i need to add some filtering and ordering to the queries</description>
		<content:encoded><![CDATA[<p>Nice Vid!<br />
I am also working on a Doctrine 1.2 / ZF integration right now.<br />
I have used Doctrine for the past 2 years now (before 1.0). You don&#8217;t have to write your own findAll function, doctrine has one fore you (<a href="http://www.doctrine-project.org/projects/orm/1.2/docs/manual/dql-doctrine-query-language/en#magic-finders" rel="nofollow">http://www.doctrine-project.org/projects/orm/1.2/docs/manual/dql-doctrine-query-language/en#magic-finders</a>)<br />
in your case u can simply write: </p>
<p>Doctrine_Core::getTable(&#8216;Model_Car&#8217;)-&gt;findAll();</p>
<p>which will also work if you do not have generated the Table class.</p>
<p>most of the time i use this only for building the views, cause i need to add some filtering and ordering to the queries</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-7666</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Thu, 03 Jun 2010 22:15:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-7666</guid>
		<description>@Funk Face
Your comment was a life saver!

I would do one thing differently though. Since all _init methods get run on each request, instead of adding that line to the _initDoctrine method, I just took the contents of my _initAppAutoload method and stuck them at the beginning of _initDoctrine. This way the _initAppAutoload code only gets run once inside a normal application (not cli).

@jon
I find myself continually returning to your site as a reference. Thanks for all the hard work!</description>
		<content:encoded><![CDATA[<p>@Funk Face<br />
Your comment was a life saver!</p>
<p>I would do one thing differently though. Since all _init methods get run on each request, instead of adding that line to the _initDoctrine method, I just took the contents of my _initAppAutoload method and stuck them at the beginning of _initDoctrine. This way the _initAppAutoload code only gets run once inside a normal application (not cli).</p>
<p>@jon<br />
I find myself continually returning to your site as a reference. Thanks for all the hard work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sirio</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-7154</link>
		<dc:creator>Sirio</dc:creator>
		<pubDate>Tue, 04 May 2010 10:35:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-7154</guid>
		<description>Very good job, but what about doctrine extensions? How to autoload them?</description>
		<content:encoded><![CDATA[<p>Very good job, but what about doctrine extensions? How to autoload them?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Integrando o Doctrine com o Zend Framework :: Tutoriais CTDO - Sua Base de Tutoriais Online</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-6962</link>
		<dc:creator>Integrando o Doctrine com o Zend Framework :: Tutoriais CTDO - Sua Base de Tutoriais Online</dc:creator>
		<pubDate>Wed, 28 Apr 2010 12:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-6962</guid>
		<description>[...] Deep Integration between Zend and Doctrine 1.2 [...]</description>
		<content:encoded><![CDATA[<p>[...] Deep Integration between Zend and Doctrine 1.2 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Funk Face</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-6777</link>
		<dc:creator>Funk Face</dc:creator>
		<pubDate>Thu, 22 Apr 2010 16:40:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-6777</guid>
		<description>Great work here, this page has really helped me get going with Zend/Doctrine integration, thanks.

I think the problem with using Doctrine_Core::MODEL_LOADING_PEAR with CLI mode originates in scripts/doctrine.php where you do:

$application-&gt;getBootstrap()-&gt;bootstrap(&#039;doctrine&#039;);

This calls _initDoctrine() but never _initAppAutoload(). The best way to correct the situation is to add this line to _initDoctrine():

$this-&gt;bootstrap(&#039;appAutoload&#039;);</description>
		<content:encoded><![CDATA[<p>Great work here, this page has really helped me get going with Zend/Doctrine integration, thanks.</p>
<p>I think the problem with using Doctrine_Core::MODEL_LOADING_PEAR with CLI mode originates in scripts/doctrine.php where you do:</p>
<p>$application-&gt;getBootstrap()-&gt;bootstrap(&#8216;doctrine&#8217;);</p>
<p>This calls _initDoctrine() but never _initAppAutoload(). The best way to correct the situation is to add this line to _initDoctrine():</p>
<p>$this-&gt;bootstrap(&#8216;appAutoload&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rafa</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-6588</link>
		<dc:creator>Rafa</dc:creator>
		<pubDate>Tue, 13 Apr 2010 12:13:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-6588</guid>
		<description>Hi everyone!

Just a question a little bit offtopic:

Is there any way to pass the doctrine_collection object to a partial (partialLoop)? It seems that it implements iterator, but I can&#039;t use the objects (car and user) into the &quot;partial&quot; code.  Should I use the foreach statement and forget the partialLoop?

Thanks a lot</description>
		<content:encoded><![CDATA[<p>Hi everyone!</p>
<p>Just a question a little bit offtopic:</p>
<p>Is there any way to pass the doctrine_collection object to a partial (partialLoop)? It seems that it implements iterator, but I can&#8217;t use the objects (car and user) into the &#8220;partial&#8221; code.  Should I use the foreach statement and forget the partialLoop?</p>
<p>Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mysticav</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-6338</link>
		<dc:creator>mysticav</dc:creator>
		<pubDate>Sat, 27 Mar 2010 07:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-6338</guid>
		<description>I&#039;m having a BIG issue with phpunit and doctrine (deep integration).

Baically, the problem happens when I run phpunit and the code coverage report takes 
place.

It starts by looking the classes in models directory.

When it finds the first class, let say &quot;User&quot;
and because &quot;User&quot; class is defined as 
&quot;Model_User extends Model_Base_User&quot;

it throws an error:
&quot;Generating code coverage report, this may take a moment.
Fatal error: Class &#039;Model_Base_User&#039; not found in [mypath]\application\models\User.php on line 14&quot;

Jon, Can you please let us know what changes we should make in &quot;tests/boostrap.php&quot; so we can follow this video without break our phpunit testing capabilities ?

A very dirty solution could be adding a &quot;require_once(Base/User.php)&quot; in the Model File. Unacceptable solution, indeed.</description>
		<content:encoded><![CDATA[<p>I&#8217;m having a BIG issue with phpunit and doctrine (deep integration).</p>
<p>Baically, the problem happens when I run phpunit and the code coverage report takes<br />
place.</p>
<p>It starts by looking the classes in models directory.</p>
<p>When it finds the first class, let say &#8220;User&#8221;<br />
and because &#8220;User&#8221; class is defined as<br />
&#8220;Model_User extends Model_Base_User&#8221;</p>
<p>it throws an error:<br />
&#8220;Generating code coverage report, this may take a moment.<br />
Fatal error: Class &#8216;Model_Base_User&#8217; not found in [mypath]\application\models\User.php on line 14&#8243;</p>
<p>Jon, Can you please let us know what changes we should make in &#8220;tests/boostrap.php&#8221; so we can follow this video without break our phpunit testing capabilities ?</p>
<p>A very dirty solution could be adding a &#8220;require_once(Base/User.php)&#8221; in the Model File. Unacceptable solution, indeed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fernando</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-6322</link>
		<dc:creator>Fernando</dc:creator>
		<pubDate>Fri, 26 Mar 2010 02:41:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-6322</guid>
		<description>Hello, nice tutorial. I ran into some troubles, the Cli just couldn&#039;t run when the models were already generated. It just kept throwing exceptions that &quot;Model_Base_MyTable&quot; wasn&#039;t found. To solve it i added the following code in the cli &quot;scripts/doctrine.php&quot;: $application-&gt;getBootstrap()-&gt;bootstrap(&#039;autoload&#039;);

Just before the bootstrap of &#039;doctrine&#039;.

Thanks, Regards.</description>
		<content:encoded><![CDATA[<p>Hello, nice tutorial. I ran into some troubles, the Cli just couldn&#8217;t run when the models were already generated. It just kept throwing exceptions that &#8220;Model_Base_MyTable&#8221; wasn&#8217;t found. To solve it i added the following code in the cli &#8220;scripts/doctrine.php&#8221;: $application-&gt;getBootstrap()-&gt;bootstrap(&#8216;autoload&#8217;);</p>
<p>Just before the bootstrap of &#8216;doctrine&#8217;.</p>
<p>Thanks, Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zend Framework Blog &#187; Blog Archive &#187; Aus den Zend Framework Blogs</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-5837</link>
		<dc:creator>Zend Framework Blog &#187; Blog Archive &#187; Aus den Zend Framework Blogs</dc:creator>
		<pubDate>Thu, 04 Mar 2010 21:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-5837</guid>
		<description>[...] Jon Lebensold hat ein Video über die Integration von Doctrine 1.2 veröffentlicht. [...]</description>
		<content:encoded><![CDATA[<p>[...] Jon Lebensold hat ein Video über die Integration von Doctrine 1.2 veröffentlicht. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Horn</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-5623</link>
		<dc:creator>Ryan Horn</dc:creator>
		<pubDate>Thu, 25 Feb 2010 13:58:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-5623</guid>
		<description>Tobias, try putting

doctrine.model_autoloading = 1

in your &quot;testing&quot; section of application.ini if it&#039;s not there already.</description>
		<content:encoded><![CDATA[<p>Tobias, try putting</p>
<p>doctrine.model_autoloading = 1</p>
<p>in your &#8220;testing&#8221; section of application.ini if it&#8217;s not there already.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: correct(ed) web &#187; Blog Archive &#187; BookDB &#8211; step 0.5: Modules AND Doctrine - stuff you got wrong</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-5530</link>
		<dc:creator>correct(ed) web &#187; Blog Archive &#187; BookDB &#8211; step 0.5: Modules AND Doctrine - stuff you got wrong</dc:creator>
		<pubDate>Sun, 21 Feb 2010 07:56:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-5530</guid>
		<description>[...] figure out what was going on, not to find a solution, I did that downloading the application from here and looking into their code.) This will get rid of the generated folder and instead create all base [...]</description>
		<content:encoded><![CDATA[<p>[...] figure out what was going on, not to find a solution, I did that downloading the application from here and looking into their code.) This will get rid of the generated folder and instead create all base [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tobias</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-5454</link>
		<dc:creator>tobias</dc:creator>
		<pubDate>Wed, 17 Feb 2010 10:47:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-5454</guid>
		<description>Hi Jon, thanks for your casts, they are very interesting. But after the &quot;deep integration&quot; of doctrine my phpunit test fails. 

&quot;create-tables - Created tables successfully
SQLSTATE[42S02]: Base table or view not found: 1146 Table &#039;apptest.car&#039; doesn&#039;t exist&quot;

My database &quot;apptest&quot; ist created but there is no table in it. 

greeting
tobias</description>
		<content:encoded><![CDATA[<p>Hi Jon, thanks for your casts, they are very interesting. But after the &#8220;deep integration&#8221; of doctrine my phpunit test fails. </p>
<p>&#8220;create-tables &#8211; Created tables successfully<br />
SQLSTATE[42S02]: Base table or view not found: 1146 Table &#8216;apptest.car&#8217; doesn&#8217;t exist&#8221;</p>
<p>My database &#8220;apptest&#8221; ist created but there is no table in it. </p>
<p>greeting<br />
tobias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-5267</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Sat, 06 Feb 2010 22:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-5267</guid>
		<description>that&#039;s a pretty strange bug! I&#039;d try and hold out for Doctrine 2 if I could... The Doctrine team is pretty responsive as well, I would shoot them an email or check the bug tracker.</description>
		<content:encoded><![CDATA[<p>that&#8217;s a pretty strange bug! I&#8217;d try and hold out for Doctrine 2 if I could&#8230; The Doctrine team is pretty responsive as well, I would shoot them an email or check the bug tracker.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: the.ufon</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-5266</link>
		<dc:creator>the.ufon</dc:creator>
		<pubDate>Sat, 06 Feb 2010 21:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-5266</guid>
		<description>same problem.. I need at least three models beginning at &#039;a&#039;, so it&#039;s quite fed-upping every time delete this three models and recovering all methods after rebuild models or db.. 

any solution Jon? :))</description>
		<content:encoded><![CDATA[<p>same problem.. I need at least three models beginning at &#8216;a&#8217;, so it&#8217;s quite fed-upping every time delete this three models and recovering all methods after rebuild models or db.. </p>
<p>any solution Jon? <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandor</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-5238</link>
		<dc:creator>Sandor</dc:creator>
		<pubDate>Fri, 05 Feb 2010 12:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-5238</guid>
		<description>Hi, after I&#039;ve set the model loading to aggressive creating the tables failed silently. I figured out that there is an issue with class_exists php internal function at line 782 in doctrine_core class&#039;s isValidModelClass function. Somehow it throws a silent error that preventing to function properly I replaced it with &quot;in_array($class, get_declared_classes())&quot; and the tables have been created successfully. That&#039;s probably my compiled MAMP 1.8.2 or ZF&#039;s (1.9.5) autoload mechanism related bug or something other.

If somebody encountered the same problem maybe that helps.

r. Sandor</description>
		<content:encoded><![CDATA[<p>Hi, after I&#8217;ve set the model loading to aggressive creating the tables failed silently. I figured out that there is an issue with class_exists php internal function at line 782 in doctrine_core class&#8217;s isValidModelClass function. Somehow it throws a silent error that preventing to function properly I replaced it with &#8220;in_array($class, get_declared_classes())&#8221; and the tables have been created successfully. That&#8217;s probably my compiled MAMP 1.8.2 or ZF&#8217;s (1.9.5) autoload mechanism related bug or something other.</p>
<p>If somebody encountered the same problem maybe that helps.</p>
<p>r. Sandor</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mischosch</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-5103</link>
		<dc:creator>Mischosch</dc:creator>
		<pubDate>Sat, 30 Jan 2010 11:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-5103</guid>
		<description>Hehe, the &quot;a&quot; Problem. Every Model starting with an a causes that problem. Give it a try, strange voodoo!</description>
		<content:encoded><![CDATA[<p>Hehe, the &#8220;a&#8221; Problem. Every Model starting with an a causes that problem. Give it a try, strange voodoo!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jochen</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-5087</link>
		<dc:creator>Jochen</dc:creator>
		<pubDate>Fri, 29 Jan 2010 21:36:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-5087</guid>
		<description>@ahue

I think the reason could be that aggressive loading just recurses through your models directory and loads everything it finds. Since &quot;Album&quot; is alphabetically before &quot;Base&quot;, the Base_ classes just aren&#039;t loaded yet when it gets to Album.php. When it loads Music.php, it has already recursed into the Base directory and loaded the base classes.

WTF???</description>
		<content:encoded><![CDATA[<p>@ahue</p>
<p>I think the reason could be that aggressive loading just recurses through your models directory and loads everything it finds. Since &#8220;Album&#8221; is alphabetically before &#8220;Base&#8221;, the Base_ classes just aren&#8217;t loaded yet when it gets to Album.php. When it loads Music.php, it has already recursed into the Base directory and loaded the base classes.</p>
<p>WTF???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ahue</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-5013</link>
		<dc:creator>ahue</dc:creator>
		<pubDate>Mon, 25 Jan 2010 20:20:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-5013</guid>
		<description>Unbelievable... I renamed &quot;Album&quot; to &quot;Music&quot; and it worked? WTF???</description>
		<content:encoded><![CDATA[<p>Unbelievable&#8230; I renamed &#8220;Album&#8221; to &#8220;Music&#8221; and it worked? WTF???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ahue</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-5009</link>
		<dc:creator>ahue</dc:creator>
		<pubDate>Mon, 25 Jan 2010 18:55:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-5009</guid>
		<description>Hm… everything worked fine (except of the things you already mentioned) until I changed from CONSERVATIVE to AGGRESSIVE when using CLI. Now when I have deleted all Model and Base/Model classes and run build-all-reload it works, DB is created, tables are creates, fixtures are filled and the Application runs without erros afterwards. BUT if I do changes to the schema and want to run build-all-reload again (now Models and auto-generated Base Model files exist) I get a fatal error:

Fatal error: Class ‘Model_Base_Album’ not found in C:\…\Album.php on line 14

So the generated Base Models are not found. Can anyone help me with this?</description>
		<content:encoded><![CDATA[<p>Hm… everything worked fine (except of the things you already mentioned) until I changed from CONSERVATIVE to AGGRESSIVE when using CLI. Now when I have deleted all Model and Base/Model classes and run build-all-reload it works, DB is created, tables are creates, fixtures are filled and the Application runs without erros afterwards. BUT if I do changes to the schema and want to run build-all-reload again (now Models and auto-generated Base Model files exist) I get a fatal error:</p>
<p>Fatal error: Class ‘Model_Base_Album’ not found in C:\…\Album.php on line 14</p>
<p>So the generated Base Models are not found. Can anyone help me with this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Hicks</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-4819</link>
		<dc:creator>Jeremy Hicks</dc:creator>
		<pubDate>Tue, 19 Jan 2010 22:20:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-4819</guid>
		<description>In the past I have used 

Doctrine_Core::loadModels($doctrineConfig[&#039;models_path&#039;]); 

in my _initDoctine method instead of creating the _initAppAutoload method. I guess that&#039;s where my confusion came from. Any real difference behind the scenes between the two approaches? 

Great screencast! Keep them coming.</description>
		<content:encoded><![CDATA[<p>In the past I have used </p>
<p>Doctrine_Core::loadModels($doctrineConfig['models_path']); </p>
<p>in my _initDoctine method instead of creating the _initAppAutoload method. I guess that&#8217;s where my confusion came from. Any real difference behind the scenes between the two approaches? </p>
<p>Great screencast! Keep them coming.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vlad</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-4811</link>
		<dc:creator>vlad</dc:creator>
		<pubDate>Mon, 18 Jan 2010 23:41:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-4811</guid>
		<description>I watched all the casts from this awesome site, and just wanted to thank you for what you&#039;re doing!!!</description>
		<content:encoded><![CDATA[<p>I watched all the casts from this awesome site, and just wanted to thank you for what you&#8217;re doing!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-4707</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Fri, 15 Jan 2010 17:41:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-4707</guid>
		<description>@umpirsky: The application resource is a good move, however it adds yet another level of indirection, which when you&#039;re trying to get the two frameworks to work properly initially, can simply add confusion. I&#039;ve seen implementations of the application resource, however if you&#039;re not going to be running the resource in more than one place and its a database-driven website, what&#039;s the point?</description>
		<content:encoded><![CDATA[<p>@umpirsky: The application resource is a good move, however it adds yet another level of indirection, which when you&#8217;re trying to get the two frameworks to work properly initially, can simply add confusion. I&#8217;ve seen implementations of the application resource, however if you&#8217;re not going to be running the resource in more than one place and its a database-driven website, what&#8217;s the point?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ZendCasts.com: Deep Integration between Zend and Doctrine 1.2 &#124; Webs Developer</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-4702</link>
		<dc:creator>ZendCasts.com: Deep Integration between Zend and Doctrine 1.2 &#124; Webs Developer</dc:creator>
		<pubDate>Fri, 15 Jan 2010 16:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-4702</guid>
		<description>[...] on the ZendCasts.com site is this recent screencast about the best approach for integration of the popular Doctrine ORM and the Zend Framework.  his [...]</description>
		<content:encoded><![CDATA[<p>[...] on the ZendCasts.com site is this recent screencast about the best approach for integration of the popular Doctrine ORM and the Zend Framework.  his [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: umpirsky</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-4698</link>
		<dc:creator>umpirsky</dc:creator>
		<pubDate>Fri, 15 Jan 2010 14:03:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-4698</guid>
		<description>Isn&#039;t the right way for setting up doctrine implementing application resource, instead having _initDoctrine in your bootstrap?</description>
		<content:encoded><![CDATA[<p>Isn&#8217;t the right way for setting up doctrine implementing application resource, instead having _initDoctrine in your bootstrap?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-4682</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Thu, 14 Jan 2010 22:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-4682</guid>
		<description>this ensures that we get the proper Model_ loading behaviour since models are considered a &quot;resource&quot; in Zend (like the application/forms/ folder contains Form_ objects.) Not sure if this is a hold-over or if ZF is moving more in this direction though...</description>
		<content:encoded><![CDATA[<p>this ensures that we get the proper Model_ loading behaviour since models are considered a &#8220;resource&#8221; in Zend (like the application/forms/ folder contains Form_ objects.) Not sure if this is a hold-over or if ZF is moving more in this direction though&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Hicks</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-4678</link>
		<dc:creator>Jeremy Hicks</dc:creator>
		<pubDate>Thu, 14 Jan 2010 17:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-4678</guid>
		<description>Why did you create the _initAppAutoload method?</description>
		<content:encoded><![CDATA[<p>Why did you create the _initAppAutoload method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nORKy</title>
		<link>http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/comment-page-1/#comment-4666</link>
		<dc:creator>nORKy</dc:creator>
		<pubDate>Thu, 14 Jan 2010 09:35:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=297#comment-4666</guid>
		<description>Good job.

This is some tips :

you don&#039;t need to set &#039;aggressive&#039; for the cli and &#039;conservative&#039; for the &#039;http&#039; request.
You don&#039;t need to use Doctrine.php
You don&#039;t need to copy/link vendor.

how ?

In _initDoctrine :
remove
Doctrine,autoload and modelsAutoload

add (need only for the class &#039;sfYmal&#039; )
$this-&gt;getApplication()-&gt;getAutoloader()-&gt;pushAutoloader(array(&#039;Doctrine_Core&#039;, &#039;autoload&#039;));

add
$manager-&gt;setAttribute(Doctrine_Core::ATTR_MODEL_CLASS_PREFIX, &#039;Model_&#039;);

update
$manager-&gt;setAttribute(Doctrine_Core::ATTR_MODEL_LOADING, Doctrine_Core::MODEL_LOADING_PEAR);

update all ref Doctrine to Doctrine_Core

That&#039;all.</description>
		<content:encoded><![CDATA[<p>Good job.</p>
<p>This is some tips :</p>
<p>you don&#8217;t need to set &#8216;aggressive&#8217; for the cli and &#8216;conservative&#8217; for the &#8216;http&#8217; request.<br />
You don&#8217;t need to use Doctrine.php<br />
You don&#8217;t need to copy/link vendor.</p>
<p>how ?</p>
<p>In _initDoctrine :<br />
remove<br />
Doctrine,autoload and modelsAutoload</p>
<p>add (need only for the class &#8216;sfYmal&#8217; )<br />
$this-&gt;getApplication()-&gt;getAutoloader()-&gt;pushAutoloader(array(&#8216;Doctrine_Core&#8217;, &#8216;autoload&#8217;));</p>
<p>add<br />
$manager-&gt;setAttribute(Doctrine_Core::ATTR_MODEL_CLASS_PREFIX, &#8216;Model_&#8217;);</p>
<p>update<br />
$manager-&gt;setAttribute(Doctrine_Core::ATTR_MODEL_LOADING, Doctrine_Core::MODEL_LOADING_PEAR);</p>
<p>update all ref Doctrine to Doctrine_Core</p>
<p>That&#8217;all.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

