<?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: GSoC, ZF &amp; Doctrine</title>
	<atom:link href="http://weblog.savanne.be/130-gsoc-zf-doctrine/feed" rel="self" type="application/rss+xml" />
	<link>http://weblog.savanne.be/130-gsoc-zf-doctrine</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 17:19:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Abhishek Kushwaha</title>
		<link>http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-34695</link>
		<dc:creator>Abhishek Kushwaha</dc:creator>
		<pubDate>Mon, 07 Jun 2010 13:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-34695</guid>
		<description>Yes Ruben,
please make it as soon as possible.....
I am eagerly waiting for the assistance in integrating ZF 1.10 and Doctrine 1.2.2 
:)</description>
		<content:encoded><![CDATA[<p>Yes Ruben,<br />
please make it as soon as possible&#8230;..<br />
I am eagerly waiting for the assistance in integrating ZF 1.10 and Doctrine 1.2.2<br />
:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RubenV</title>
		<link>http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-28967</link>
		<dc:creator>RubenV</dc:creator>
		<pubDate>Sun, 08 Nov 2009 12:26:12 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-28967</guid>
		<description>Master thesis has been finished for quite some time now. Right now it&#039;s the PhD that&#039;s keeping me from updating this to ZF 1.10.</description>
		<content:encoded><![CDATA[<p>Master thesis has been finished for quite some time now. Right now it&#8217;s the PhD that&#8217;s keeping me from updating this to ZF 1.10.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dieter</title>
		<link>http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-28965</link>
		<dc:creator>Dieter</dc:creator>
		<pubDate>Sun, 08 Nov 2009 08:18:58 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-28965</guid>
		<description>Great tutorial, it really helped me out in my setup.
More of these after the Master thesis? ;-)</description>
		<content:encoded><![CDATA[<p>Great tutorial, it really helped me out in my setup.<br />
More of these after the Master thesis? ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lisa Ridley</title>
		<link>http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-27607</link>
		<dc:creator>Lisa Ridley</dc:creator>
		<pubDate>Mon, 21 Sep 2009 21:42:06 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-27607</guid>
		<description>Hey!  Love your tutorial; however I was getting a PHP Notice when trying to use Doctrine 1.1.3 and Zend Framework 1.8.2 together:

Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in [...]/library/zendframework/Zend/Loader.php on line 207

which stack-traces back to the following line in /application/global.php:

Zend_Loader::registerAutoload(&#039;Zend_Loader&#039;);

After doing some research it appears that this notice was introduced as of Zend Framework version 1.8 due to the deprecation and future removal of the autoloader feature of Zend_Loader.  The fix I found is as follows:

Replace the following lines in /application/global.php:

require_once(&#039;Zend/Loader.php&#039;);
Zend_Loader::registerAutoload(&#039;Zend_Loader&#039;);

with these:

require_once(&#039;Zend/Loader/Autoloader.php&#039;);
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader-&gt;setFallbackAutoloader(true);

and your tutorial will run properly, although I don&#039;t have a full understanding of the implications of the change since I&quot;m not really clear on why the autoload mechanism in Zend_Loader is being deprecated to begin with, although I think it&#039;s related to the introduction of Namespaces in php 5.3.0, and future enhancements to support them properly in the Zend Framework.

A second issue that arose is the following notice when error reporting is set to include E_STRICT:

Strict standards: Only variables should be passed by reference in [...]/library/doctrine/Doctrine/Query.php on line 1187

which appears to be triggered by a call to Doctrine_Query::execute(), as occurs in IndexController::indexAction() on the following lines:

$message_query = Doctrine_Query::create()
			-&gt;select()
			-&gt;from(&#039;Message m&#039;)
			-&gt;orderBy(&#039;m.posted DESC&#039;);
$messages = $message_query-&gt;execute();

Again, not alot of information, although this appears to be triggered by Doctrine itself.

Great tutorial, by the way.</description>
		<content:encoded><![CDATA[<p>Hey!  Love your tutorial; however I was getting a PHP Notice when trying to use Doctrine 1.1.3 and Zend Framework 1.8.2 together:</p>
<p>Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in [...]/library/zendframework/Zend/Loader.php on line 207</p>
<p>which stack-traces back to the following line in /application/global.php:</p>
<p>Zend_Loader::registerAutoload(&#8216;Zend_Loader&#8217;);</p>
<p>After doing some research it appears that this notice was introduced as of Zend Framework version 1.8 due to the deprecation and future removal of the autoloader feature of Zend_Loader.  The fix I found is as follows:</p>
<p>Replace the following lines in /application/global.php:</p>
<p>require_once(&#8216;Zend/Loader.php&#8217;);<br />
Zend_Loader::registerAutoload(&#8216;Zend_Loader&#8217;);</p>
<p>with these:</p>
<p>require_once(&#8216;Zend/Loader/Autoloader.php&#8217;);<br />
$autoloader = Zend_Loader_Autoloader::getInstance();<br />
$autoloader->setFallbackAutoloader(true);</p>
<p>and your tutorial will run properly, although I don&#8217;t have a full understanding of the implications of the change since I&#8221;m not really clear on why the autoload mechanism in Zend_Loader is being deprecated to begin with, although I think it&#8217;s related to the introduction of Namespaces in php 5.3.0, and future enhancements to support them properly in the Zend Framework.</p>
<p>A second issue that arose is the following notice when error reporting is set to include E_STRICT:</p>
<p>Strict standards: Only variables should be passed by reference in [...]/library/doctrine/Doctrine/Query.php on line 1187</p>
<p>which appears to be triggered by a call to Doctrine_Query::execute(), as occurs in IndexController::indexAction() on the following lines:</p>
<p>$message_query = Doctrine_Query::create()<br />
			->select()<br />
			->from(&#8216;Message m&#8217;)<br />
			->orderBy(&#8216;m.posted DESC&#8217;);<br />
$messages = $message_query->execute();</p>
<p>Again, not alot of information, although this appears to be triggered by Doctrine itself.</p>
<p>Great tutorial, by the way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuta</title>
		<link>http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-23921</link>
		<dc:creator>Yuta</dc:creator>
		<pubDate>Tue, 09 Jun 2009 13:39:31 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-23921</guid>
		<description>Hi Ruben,

I translated your nice tutorial into Japanese and published it.
http://studiokdf.com/blog/2009/06/66.html

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Ruben,</p>
<p>I translated your nice tutorial into Japanese and published it.<br />
<a href="http://studiokdf.com/blog/2009/06/66.html" rel="nofollow">http://studiokdf.com/blog/2009/06/66.html</a></p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RubenV</title>
		<link>http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-23868</link>
		<dc:creator>RubenV</dc:creator>
		<pubDate>Sat, 06 Jun 2009 22:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-23868</guid>
		<description>@danceric: Cool! Thanks, that&#039;ll help to keep people going!</description>
		<content:encoded><![CDATA[<p>@danceric: Cool! Thanks, that&#8217;ll help to keep people going!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: danceric</title>
		<link>http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-23862</link>
		<dc:creator>danceric</dc:creator>
		<pubDate>Sat, 06 Jun 2009 12:14:49 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-23862</guid>
		<description>Hi Ruben, I have updated the instruction here for ZF 1.8 at http://www.danceric.net/2009/06/06/doctrine-orm-and-zend-framework/ 
feel free to take anything you want if you want to update your great post.</description>
		<content:encoded><![CDATA[<p>Hi Ruben, I have updated the instruction here for ZF 1.8 at <a href="http://www.danceric.net/2009/06/06/doctrine-orm-and-zend-framework/" rel="nofollow">http://www.danceric.net/2009/06/06/doctrine-orm-and-zend-framework/</a><br />
feel free to take anything you want if you want to update your great post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RubenV</title>
		<link>http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-23689</link>
		<dc:creator>RubenV</dc:creator>
		<pubDate>Sat, 30 May 2009 17:01:01 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-23689</guid>
		<description>I need to update the article for ZF 1.8, but that won&#039;t be for any time soon, as I&#039;m bogged down by my masters thesis.</description>
		<content:encoded><![CDATA[<p>I need to update the article for ZF 1.8, but that won&#8217;t be for any time soon, as I&#8217;m bogged down by my masters thesis.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: will</title>
		<link>http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-23583</link>
		<dc:creator>will</dc:creator>
		<pubDate>Thu, 28 May 2009 08:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-23583</guid>
		<description>Hay, out of interest. you can&#039;t really have zend_db models anymore right?  wouldn&#039;t it be better to have the doctrine models in their own folder? maybe inside the models folder?</description>
		<content:encoded><![CDATA[<p>Hay, out of interest. you can&#8217;t really have zend_db models anymore right?  wouldn&#8217;t it be better to have the doctrine models in their own folder? maybe inside the models folder?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: will</title>
		<link>http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-23574</link>
		<dc:creator>will</dc:creator>
		<pubDate>Thu, 28 May 2009 04:59:44 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.savanne.be/130-gsoc-zf-doctrine#comment-23574</guid>
		<description>ok, self rescue: I put this in my bootstrap class, zf seems to call it for me

protected function _initDatabase()  
     {  
          Doctrine_Manager::connection(&quot;mysql://root:root@localhost/track&quot;); 
          
          Zend_Registry::set(&#039;doctrine_config&#039;, array(
	      &#039;data_fixtures_path&#039;  =&gt;  dirname(__FILE__).&#039;/doctrine/data/fixtures&#039;,
	      &#039;models_path&#039;         =&gt;  dirname(__FILE__).&#039;/models&#039;,
	      &#039;migrations_path&#039;     =&gt;  dirname(__FILE__).&#039;/doctrine/migrations&#039;,
	      &#039;sql_path&#039;            =&gt;  dirname(__FILE__).&#039;/doctrine/data/sql&#039;,
	      &#039;yaml_schema_path&#039;    =&gt;  dirname(__FILE__).&#039;/doctrine/schema&#039;
	      ));
     }  


Then in index.php, i added the generated models path, cos the models file structure  / class names don&#039;t match ZF&#039;s autoloading pattern (?)

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . &#039;/../library&#039;),
    realpath(APPLICATION_PATH . &#039;/models/generated&#039;),
    get_include_path(),
)));

oh, its not just generated, so just for a little variation, i added to the incude path in the config by sticking this line in the ini

includePaths.model = APPLICATION_PATH &quot;/models&quot;

presumable ZF adds any includePaths.whatevers to the path, why not say that in the comments is a bit of a mystery to me, i guess they only want *really clever* developers using it. grumble grumble.</description>
		<content:encoded><![CDATA[<p>ok, self rescue: I put this in my bootstrap class, zf seems to call it for me</p>
<p>protected function _initDatabase()<br />
     {<br />
          Doctrine_Manager::connection(&#8220;mysql://root:root@localhost/track&#8221;); </p>
<p>          Zend_Registry::set(&#8216;doctrine_config&#8217;, array(<br />
	      &#8216;data_fixtures_path&#8217;  =>  dirname(__FILE__).&#8217;/doctrine/data/fixtures&#8217;,<br />
	      &#8216;models_path&#8217;         =>  dirname(__FILE__).&#8217;/models&#8217;,<br />
	      &#8216;migrations_path&#8217;     =>  dirname(__FILE__).&#8217;/doctrine/migrations&#8217;,<br />
	      &#8216;sql_path&#8217;            =>  dirname(__FILE__).&#8217;/doctrine/data/sql&#8217;,<br />
	      &#8216;yaml_schema_path&#8217;    =>  dirname(__FILE__).&#8217;/doctrine/schema&#8217;<br />
	      ));<br />
     }  </p>
<p>Then in index.php, i added the generated models path, cos the models file structure  / class names don&#8217;t match ZF&#8217;s autoloading pattern (?)</p>
<p>// Ensure library/ is on include_path<br />
set_include_path(implode(PATH_SEPARATOR, array(<br />
    realpath(APPLICATION_PATH . &#8216;/../library&#8217;),<br />
    realpath(APPLICATION_PATH . &#8216;/models/generated&#8217;),<br />
    get_include_path(),<br />
)));</p>
<p>oh, its not just generated, so just for a little variation, i added to the incude path in the config by sticking this line in the ini</p>
<p>includePaths.model = APPLICATION_PATH &#8220;/models&#8221;</p>
<p>presumable ZF adds any includePaths.whatevers to the path, why not say that in the comments is a bit of a mystery to me, i guess they only want *really clever* developers using it. grumble grumble.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

