<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Tue May 21 17:24:50 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/DMIG-6/DMIG-6.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>[DMIG-6] Put Migrations under own namespace to avoid problems with Autoloader</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-6</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;I think it would be a good idea to put the Migrations classes under their own namespace. If you use \Doctrine\Common\ClassLoader for loading both, DBAL and Migrations, you need to load Migrations before DBAL to avoid raising an exception.&lt;/p&gt;

&lt;p&gt;Throws exception:&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;$classLoader = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\&lt;span class=&quot;code-object&quot;&gt;ClassLoader&lt;/span&gt;(&apos;Doctrine\DBAL&apos;, realpath(APPLICATION_PATH . &apos;/../library/Doctrine/DBAL/lib&apos;));
$classLoader-&amp;gt;register();
$classLoader = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\&lt;span class=&quot;code-object&quot;&gt;ClassLoader&lt;/span&gt;(&apos;Doctrine\DBAL\Migrations&apos;, realpath(APPLICATION_PATH . &apos;/../library/Doctrine/Migrations/lib&apos;));
$classLoader-&amp;gt;register();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Works:&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;$classLoader = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\&lt;span class=&quot;code-object&quot;&gt;ClassLoader&lt;/span&gt;(&apos;Doctrine\DBAL\Migrations&apos;, realpath(APPLICATION_PATH . &apos;/../library/Doctrine/Migrations/lib&apos;));
$classLoader-&amp;gt;register();
$classLoader = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\&lt;span class=&quot;code-object&quot;&gt;ClassLoader&lt;/span&gt;(&apos;Doctrine\DBAL&apos;, realpath(APPLICATION_PATH . &apos;/../library/Doctrine/DBAL/lib&apos;));
$classLoader-&amp;gt;register();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="11573">DMIG-6</key>
            <summary>Put Migrations under own namespace to avoid problems with Autoloader</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="mstoehr">Marcus St&#246;hr</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 Jun 2010 08:19:16 +0000</created>
                <updated>Wed, 16 Nov 2011 22:09:34 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="13473" author="jwage" created="Wed, 30 Jun 2010 18:08:25 +0000"  >&lt;p&gt;I am not sure we should do this. The migrations are an extension of the DBAL so it makes sense to be under that namespace. I thin it is normal to have to register the autoloaders in the right order, no?&lt;/p&gt;</comment>
                    <comment id="13478" author="mstoehr" created="Thu, 1 Jul 2010 04:15:47 +0000"  >&lt;p&gt;Yes, with the migrations being an extension of the DBAL I agree with you. As of today I wasn&apos;t aware of the fact that the autoloader using a stack (I should have checked that prior). However, it would be nice to have either some documentation about it or extend the ClassLoader to handle this implicit.&lt;/p&gt;</comment>
                    <comment id="13481" author="jwage" created="Thu, 1 Jul 2010 12:47:55 +0000"  >&lt;p&gt;I will add some documentation about using multiple class loaders and order.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>