<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu Jun 20 06:36:44 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/si/jira.issueviews:issue-xml/DDC-2196/DDC-2196.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://www.doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

<item>
            <title>[DDC-2196] EntityManager can&apos;t be extended easily</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2196</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; function create($conn, Configuration $config, EventManager $eventManager = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
{
    &lt;span class=&quot;code-comment&quot;&gt;// ...
&lt;/span&gt;    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; EntityManager($conn, $config, $conn-&amp;gt;getEventManager());
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The &lt;tt&gt;EntityManager::create&lt;/tt&gt; method uses new on the &lt;tt&gt;EntityManager&lt;/tt&gt; class instead of &lt;tt&gt;static&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;This makes extending that class not practical because we have to rewrite (duplicate) &lt;tt&gt;EntityManager::create&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Code could be extendable with:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; function create($conn, Configuration $config, EventManager $eventManager = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
{
    &lt;span class=&quot;code-comment&quot;&gt;// ...
&lt;/span&gt;    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt;($conn, $config, $conn-&amp;gt;getEventManager());
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14309">DDC-2196</key>
            <summary>EntityManager can&apos;t be extended easily</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="mnapoli">Matthieu Napoli</reporter>
                        <labels>
                    </labels>
                <created>Fri, 14 Dec 2012 11:25:28 +0000</created>
                <updated>Sun, 16 Dec 2012 12:58:47 +0000</updated>
                    <resolved>Sun, 16 Dec 2012 11:27:05 +0000</resolved>
                            <version>2.3.1</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19137" author="mnapoli" created="Fri, 14 Dec 2012 11:49:29 +0000"  >&lt;p&gt;Pull request is here: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/535&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/535&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19138" author="beberlei" created="Sun, 16 Dec 2012 11:27:05 +0000"  >&lt;p&gt;Its not desired to override the EntityManager, we are currently building a PR to build a decorator for the EntityManager instead. You can decorate the EntityManager yourself.&lt;/p&gt;</comment>
                    <comment id="19148" author="mnapoli" created="Sun, 16 Dec 2012 12:58:47 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=beberlei&quot; class=&quot;user-hover&quot; rel=&quot;beberlei&quot;&gt;Benjamin Eberlei&lt;/a&gt; Shouldn&apos;t it be final then?&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>