<?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: Bootstrapping the Doctrine 2.0 Autoloader in Zend Framework</title>
	<atom:link href="http://blog.tekerson.com/2009/09/07/bootstrapping-the-doctrine2-autoloader-in-zend-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tekerson.com/2009/09/07/bootstrapping-the-doctrine2-autoloader-in-zend-framework/</link>
	<description>The inane, sometimes insane, ramblings from the mind of Brenton Alker.</description>
	<lastBuildDate>Sat, 21 Aug 2010 17:30:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Skip</title>
		<link>http://blog.tekerson.com/2009/09/07/bootstrapping-the-doctrine2-autoloader-in-zend-framework/comment-page-1/#comment-7175</link>
		<dc:creator>Skip</dc:creator>
		<pubDate>Thu, 05 Aug 2010 05:08:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tekerson.com/?p=167#comment-7175</guid>
		<description>I have been creating the EntityManager in Bootstrap, and putting it in the Zend_Registry. This is a fatally flawed approach. As soon as you do some explicit transaction demarcation, you will discover that the entity manager is closed on the first PDOException. Therefore, all subsequent operations fail, until you create a new EntityManager. So bootstrap is wrong. A factory pattern is missing here. I am thinking about putting an EntityManager factory in the registry, from bootstrap, and then calling factory.create() from each controller. That at least allows the factory to encapsulate the configuration options and event manager, leaving the controllers to call a simple one-liner with no arguments.</description>
		<content:encoded><![CDATA[<p>I have been creating the EntityManager in Bootstrap, and putting it in the Zend_Registry. This is a fatally flawed approach. As soon as you do some explicit transaction demarcation, you will discover that the entity manager is closed on the first PDOException. Therefore, all subsequent operations fail, until you create a new EntityManager. So bootstrap is wrong. A factory pattern is missing here. I am thinking about putting an EntityManager factory in the registry, from bootstrap, and then calling factory.create() from each controller. That at least allows the factory to encapsulate the configuration options and event manager, leaving the controllers to call a simple one-liner with no arguments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brenton Alker</title>
		<link>http://blog.tekerson.com/2009/09/07/bootstrapping-the-doctrine2-autoloader-in-zend-framework/comment-page-1/#comment-4998</link>
		<dc:creator>Brenton Alker</dc:creator>
		<pubDate>Wed, 28 Apr 2010 00:05:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tekerson.com/?p=167#comment-4998</guid>
		<description>@Jonathon No, I would definitely not be creating the EntityManager in the controllers. I wouldn&#039;t even use it in the controller - it&#039;s part of the model layer.

More likely, I would create it once and inject it into the service layer. How that could be done is an entire post on its own. The registry is one option, others could be a central service broker, or a full Dependecy Injection/Inversion of Control container.</description>
		<content:encoded><![CDATA[<p>@Jonathon No, I would definitely not be creating the EntityManager in the controllers. I wouldn&#8217;t even use it in the controller &#8211; it&#8217;s part of the model layer.</p>
<p>More likely, I would create it once and inject it into the service layer. How that could be done is an entire post on its own. The registry is one option, others could be a central service broker, or a full Dependecy Injection/Inversion of Control container.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathon</title>
		<link>http://blog.tekerson.com/2009/09/07/bootstrapping-the-doctrine2-autoloader-in-zend-framework/comment-page-1/#comment-4682</link>
		<dc:creator>Jonathon</dc:creator>
		<pubDate>Fri, 26 Feb 2010 22:00:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tekerson.com/?p=167#comment-4682</guid>
		<description>Do you have to explicitly create the EntityManager throughout your code (ex. in your controllers)?  That seems a little wrong (especially if you have to provide the configuration information each time).  Maybe create the instance in the Bootstrap as well and store in Zend_Registry.  Thoughts?

Also, I&#039;m wondering what the &quot;recommended&quot; directory structure is going to be as well.</description>
		<content:encoded><![CDATA[<p>Do you have to explicitly create the EntityManager throughout your code (ex. in your controllers)?  That seems a little wrong (especially if you have to provide the configuration information each time).  Maybe create the instance in the Bootstrap as well and store in Zend_Registry.  Thoughts?</p>
<p>Also, I&#8217;m wondering what the &#8220;recommended&#8221; directory structure is going to be as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bandirsen</title>
		<link>http://blog.tekerson.com/2009/09/07/bootstrapping-the-doctrine2-autoloader-in-zend-framework/comment-page-1/#comment-4480</link>
		<dc:creator>bandirsen</dc:creator>
		<pubDate>Thu, 14 Jan 2010 09:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tekerson.com/?p=167#comment-4480</guid>
		<description>Thanks for sharing. this is information a piece that I looking for.

Looking for your next tips on this integration, such as, how to integrating doctrine 2 cache and zend_cache</description>
		<content:encoded><![CDATA[<p>Thanks for sharing. this is information a piece that I looking for.</p>
<p>Looking for your next tips on this integration, such as, how to integrating doctrine 2 cache and zend_cache</p>
]]></content:encoded>
	</item>
</channel>
</rss>
