<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed Jun 19 01:40:08 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/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+DMIG+AND+resolution+%3D+Unresolved+AND+priority+%3D+Major+ORDER+BY+key+DESC&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://www.doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+DMIG+AND+resolution+%3D+Unresolved+AND+priority+%3D+Major+ORDER+BY+key+DESC</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="16" total="16"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DMIG-41] Diff generated even if nothing changed (with solution)</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-41</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;To change this behavior:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://img849.imageshack.us/img849/9580/23052013102230134.png&quot; align=&quot;absmiddle&quot; border=&quot;0&quot; /&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14983">DMIG-41</key>
            <summary>Diff generated even if nothing changed (with solution)</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="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="and">And</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 May 2013 07:23:39 +0000</created>
                <updated>Thu, 23 May 2013 07:52:15 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20424" author="ocramius" created="Thu, 23 May 2013 07:28:58 +0000"  >&lt;p&gt;What are the commands you ran?&lt;/p&gt;</comment>
                    <comment id="20427" author="and" created="Thu, 23 May 2013 07:52:15 +0000"  >&lt;p&gt;migrations:diff&lt;/p&gt;

&lt;p&gt;$this-&amp;gt;buildCodeFromSql return &apos;$this-&amp;gt;abortIf($this-&amp;gt;connection-&amp;gt;getDatabasePlatform()&lt;del&gt;&amp;gt;getName() != &quot;mysql&quot;, &quot;Migration can only be executed safely on &apos;mysql&apos;.&quot;);&apos; on empty $this&lt;/del&gt;&amp;gt;getMigrateToSql&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-37] PostgreSQL generated SQL statements in migrations that use doublequotes create syntax errors in PHP</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-37</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;When using some reserved field names in PostgreSQL DBAL, the generated SQL statements will quote those field names. (Make a table with fieldname &quot;left&quot; for example)&lt;/p&gt;

&lt;p&gt;When the migrationversion is generated, the doublequote is not escaped:&lt;/p&gt;

&lt;p&gt;addSQL(&quot;ALTER table x add column &quot;left&quot; integer&quot;);&lt;/p&gt;

&lt;p&gt;This does not compile of course, should be&lt;/p&gt;

&lt;p&gt;addSQL(&quot;ALTER table x add column \&quot;left\&quot; integer&quot;);&lt;/p&gt;

&lt;p&gt;Regards!&lt;/p&gt;</description>
                <environment>PostgreSQL backend, using migration versions with field or schemanames that use reserved names.</environment>
            <key id="14741">DMIG-37</key>
            <summary>PostgreSQL generated SQL statements in migrations that use doublequotes create syntax errors in PHP</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="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="josdewitte">jos de witte</reporter>
                        <labels>
                        <label>PostgreSQL</label>
                        <label>schematool</label>
                    </labels>
                <created>Thu, 28 Mar 2013 22:16:36 +0000</created>
                <updated>Thu, 28 Mar 2013 22:16:36 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-36] Iterating over versions is very slow</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-36</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;When iterating migration versions, a call to SchemaManager::createSchema() is done for every versions.  Four our schema, this call take about 1 second to execute.  With already 30 migrations, this begin to be a problem.&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;
$versions = $configuration-&amp;gt;registerMigrationsFromDirectory($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_migration_folder);
foreach($versions as $version){
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;(!$version-&amp;gt;isMigrated()){
        $version-&amp;gt;markMigrated();
    }

}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;The problem is in Migrations\Configuration\Configuration::createMigrationTable() which does not set the migrationTableCreated flag when the table already exists.&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; function createMigrationTable()
{
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;validate();

        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;migrationTableCreated) {
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;
        }

        $schema = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;connection-&amp;gt;getSchemaManager()-&amp;gt;createSchema();
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ( ! $schema-&amp;gt;hasTable($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;migrationsTableName)) {
            $columns = array(
                &apos;version&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Column(&apos;version&apos;, Type::getType(&apos;string&apos;), array(&apos;length&apos; =&amp;gt; 14)),
            );
            $table = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Table($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;migrationsTableName, $columns);
            $table-&amp;gt;setPrimaryKey(array(&apos;version&apos;));
            $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;connection-&amp;gt;getSchemaManager()-&amp;gt;createTable($table);

            $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;migrationTableCreated = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;

            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
        }
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14668">DMIG-36</key>
            <summary>Iterating over versions is very slow</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="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="rickdt">Eric Durand-Tremblay</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Mar 2013 15:52:51 +0000</created>
                <updated>Tue, 5 Mar 2013 15:53:36 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-35] Ignoring unique key</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-35</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;I have a table design style, which has api_id field with unique key&lt;br/&gt;
CREATE TABLE `design_style` (&lt;br/&gt;
  `id` bigint(20) NOT NULL AUTO_INCREMENT,&lt;br/&gt;
  `api_id` varchar(5) COLLATE utf8_unicode_ci NOT NULL,&lt;br/&gt;
  .....&lt;br/&gt;
  PRIMARY KEY (`id`),&lt;br/&gt;
  UNIQUE KEY `api_id` (`api_id`),&lt;br/&gt;
  UNIQUE KEY `name` (`name`),&lt;br/&gt;
  KEY `category_id_idx` (`category_id`),&lt;br/&gt;
  CONSTRAINT `design_style_category_id_design_style_category_id` FOREIGN KEY (`category_id`) REFERENCES `design_style_category` (`id`)&lt;br/&gt;
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci&lt;/p&gt;

&lt;p&gt;I reverse engineered the database tables and created entities. I am using it in symfony2 app.&lt;/p&gt;

&lt;p&gt;Then I executed&lt;br/&gt;
&lt;b&gt;php app/console doctrine:schema:update --dump-sql&lt;/b&gt;&lt;br/&gt;
and also checked with migrations diff&lt;br/&gt;
&lt;b&gt;php app/console doctrine:migrations:diff&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;but has given me &lt;br/&gt;
&lt;b&gt;DROP INDEX api_id ON design_page&lt;/b&gt;&lt;/p&gt;
</description>
                <environment>PHP 5.4.6-2~lucid&lt;br/&gt;
5.1.63-0ubuntu0.10.04.1-log</environment>
            <key id="14021">DMIG-35</key>
            <summary>Ignoring unique key</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="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="tvgece">venu</reporter>
                        <labels>
                        <label>migrations</label>
                        <label>unique</label>
                    </labels>
                <created>Fri, 7 Sep 2012 15:46:15 +0000</created>
                <updated>Fri, 7 Sep 2012 15:46:15 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-30] Make :migrations:diff smart and generate Schema object changes, not SQL directly</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-30</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;Currently when using :migrations:diff the generated output will use addSql() exclusively. However there has to be a way to generate changes on the schema objects themselves by using the SchemaDiff objects and generating code from them.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13196">DMIG-30</key>
            <summary>Make :migrations:diff smart and generate Schema object changes, not SQL directly</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Nov 2011 22:34:01 +0000</created>
                <updated>Fri, 17 Feb 2012 06:19:43 +0000</updated>
                                                                            <due></due>
                    <votes>2</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="17367" author="veonik" created="Fri, 3 Feb 2012 22:52:55 +0000"  >&lt;p&gt;I think this would be something that would greatly increase the usefulness of migrations.&lt;/p&gt;

&lt;p&gt;After looking things over, I think doing something like this could work:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Instantiate an instance of Doctrine\ORM\Tools\Comparator, and retrieve a Doctrine\DBAL\Schema\SchemaDiff using $comparator-&amp;gt;compare($fromSchema, $toSchema);&lt;/li&gt;
	&lt;li&gt;Iterate over each of the SchemaDiff&apos;s properties to retrieve new tables, dropped tables, columns, indexes, etc to generate both up and down code&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;It seems fairly simple, but I get kind of lost thinking about how it can be tested.&lt;/p&gt;

&lt;p&gt;Another option, which may in the end be easier but more dirty, is to create a &apos;PhpPlatform&apos; that only actually implements the getCreateTableSQL, getDropTableSQL, etc methods of Doctrine\DBAL\Platforms\AbstractPlatform.&lt;/p&gt;</comment>
                    <comment id="17430" author="veonik" created="Fri, 17 Feb 2012 06:15:05 +0000"  >&lt;p&gt;I&apos;ve gone and followed what I outlined in my last comment, but there is a small snag.&lt;/p&gt;

&lt;p&gt;Comparator and SchemaDiff check for schema changes that are not possible to make using public methods. An example is a dropped index. Both Comparator and SchemaDiff support dropping indexes, but there is no Table#dropIndex to actually make it happen. &lt;/p&gt;

&lt;p&gt;However, if you use Reflection to modify the underlying Table#$_indexes array, then the proper SQL will be generated by SchemaDiff. Terrible and dirty, I know. We should do something about it &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; Should I create a ticket?&lt;/p&gt;

&lt;p&gt;Anyway, I&apos;ve attached a patch (based on the current master, 9e81984) of what I&apos;ve come up with. I &lt;em&gt;think&lt;/em&gt; I&apos;ve covered everything. This will even generate code to drop indexes and foreign keys (using Reflection). I&apos;ve tried it on a schema of around 90 entities and it works beautifully. Of course, it&apos;s definitely not done or ready, but I wanted to see what was thought about what I&apos;ve done.&lt;/p&gt;

&lt;p&gt;Finally, what would be considered an acceptable test for this kind of thing? I suppose if I refactor all of the code generating bits into individual methods, I could pretty easily test for expected output. Am I on the right track?&lt;/p&gt;

&lt;p&gt;edit: by the way, use &lt;tt&gt;migrations:diff --no-platform&lt;/tt&gt; to generate the migration&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11161" name="DMIG-30.patch" size="24317" author="veonik" created="Fri, 17 Feb 2012 06:15:05 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-29] Add callback operation</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-29</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;When &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DMIG-27&quot; title=&quot;Add stack for operations&quot;&gt;DMIG-27&lt;/a&gt; is implemented, add a new operation &quot;callback&quot; that is executed at the position in the stack and can do arbitrary things (for example use the EntityManager to migrate data!)&lt;/p&gt;</description>
                <environment></environment>
            <key id="13195">DMIG-29</key>
            <summary>Add callback operation</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Nov 2011 22:32:10 +0000</created>
                <updated>Wed, 16 Nov 2011 22:32:10 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-28] Interactive :migrate execution: Show all commands that would be executed when pressing [y]</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-28</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;Currently schema console only asks if you really want to do the migration, however you dont know what will actually happen.&lt;/p&gt;

&lt;p&gt;all the operations should be posted before asking the question to do the migration.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13194">DMIG-28</key>
            <summary>Interactive :migrate execution: Show all commands that would be executed when pressing [y]</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Nov 2011 22:31:00 +0000</created>
                <updated>Wed, 16 Nov 2011 22:31:00 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-27] Add stack for operations</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-27</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;Up and down operations should only put commands on a stack that is then executed after up() or down() have been processed.&lt;/p&gt;

&lt;p&gt;Currently there are two implicit stacks:&lt;/p&gt;

&lt;p&gt;1. addSql()&lt;br/&gt;
2. The changes done to the $schema instance.&lt;/p&gt;

&lt;p&gt;With &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DMIG-26&quot; title=&quot;Remove implicit schema diff to sql in Migration tasks for explicit solution&quot;&gt;DMIG-26&lt;/a&gt; $schema is an explicit change that adds to a stack.&lt;/p&gt;

&lt;p&gt;This should be unified to be one single stack called &quot;operations&quot; and they should be linearly processed.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13193">DMIG-27</key>
            <summary>Add stack for operations</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Nov 2011 22:29:29 +0000</created>
                <updated>Wed, 16 Nov 2011 22:31:23 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-26] Remove implicit schema diff to sql in Migration tasks for explicit solution</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-26</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;Currently the following leads to an implicit drop table statement:&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; function up(Schema $schema)
 {
    $schema-&amp;gt;dropTable(&lt;span class=&quot;code-quote&quot;&gt;&quot;foo&quot;&lt;/span&gt;);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;However this should be an explicit operation that internally puts everything onto the &quot;addSQL&quot; stack, then resets the schema diffs to zero by cloning the current schema into the &quot;diff schema&quot; again.&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; function up(Schema $schema)
 {
    $schema-&amp;gt;dropTable(&lt;span class=&quot;code-quote&quot;&gt;&quot;foo&quot;&lt;/span&gt;);
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;syncSchema($schema);
    $schema-&amp;gt;dropTable(&lt;span class=&quot;code-quote&quot;&gt;&quot;bar&quot;&lt;/span&gt;);
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;syncSchema($schema);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="13191">DMIG-26</key>
            <summary>Remove implicit schema diff to sql in Migration tasks for explicit solution</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Nov 2011 22:24:48 +0000</created>
                <updated>Mon, 21 Nov 2011 18:34:41 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16891" author="simensen" created="Sun, 20 Nov 2011 04:32:31 +0000"  >&lt;p&gt;So each call to &lt;tt&gt;syncSchema()&lt;/tt&gt; would result in processing all changes on the schema instance (&lt;tt&gt;dropTable()&lt;/tt&gt;, etc.) to actual SQL commands and placed on the &quot;operations&quot; stack? And at that point the schema instance should show no diffs so that any future calls to &lt;tt&gt;syncSchema()&lt;/tt&gt; would only include schema changes since the previous call?&lt;/p&gt;</comment>
                    <comment id="16892" author="beberlei" created="Sun, 20 Nov 2011 08:28:17 +0000"  >&lt;p&gt;Yes exactly&lt;/p&gt;</comment>
                    <comment id="16900" author="simensen" created="Mon, 21 Nov 2011 18:34:41 +0000"  >&lt;p&gt;Alright, I&apos;ll see what I can do. I have a feeling I will get a pretty good idea how everything works if I start digging into this one.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-24] False positives in Comparator on default values</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-24</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;At the moment I found only one way how to work with default values&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;/**
 * @var string $isActive
 *
 * @Column(name=&quot;isActive&quot;, type=&quot;boolean&quot;, nullable=false)
 */
private $isActive;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 
&lt;p&gt;and then in the construct I use something like $this-&amp;gt;setIsActive(true);&lt;br/&gt;
on db level it looks like &quot;isActive BIT default 1&quot;&lt;br/&gt;
But the problem happened when I try to compare schemas for migrations. It always false positives on defaults.&lt;/p&gt;

&lt;p&gt;How to set defaults for prevent false positives in Comparator?&lt;/p&gt;
</description>
                <environment></environment>
            <key id="12828">DMIG-24</key>
            <summary>False positives in Comparator on default values</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="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="yaroslav">Yaroslav Zenin</reporter>
                        <labels>
                    </labels>
                <created>Thu, 14 Jul 2011 14:55:19 +0000</created>
                <updated>Thu, 23 May 2013 08:06:56 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20423" author="and" created="Thu, 23 May 2013 07:20:53 +0000"  >&lt;p&gt;private $isActive = 1?&lt;/p&gt;</comment>
                    <comment id="20426" author="ocramius" created="Thu, 23 May 2013 07:35:01 +0000"  >&lt;p&gt;What are the affected versions for this bug? I think it is a DBAL schema comparator issue.&lt;/p&gt;</comment>
                    <comment id="20428" author="and" created="Thu, 23 May 2013 08:06:56 +0000"  >&lt;p&gt;And yes - related issue: &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2467&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2467&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-21] Call to undefined method Doctrine\DBAL\Migrations\Tools\Console\Command\StatusCommand::getApplication()</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-21</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;I get the following error when trying to run doctrine migrations:status in a newly configured setup:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;PHP Fatal error:  Call to undefined method Doctrine\DBAL\Migrations\Tools\Console\Command\StatusCommand::getApplication() in /library/vendor/migrations/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/AbstractCommand.php on line 82
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Changing line 82 of AbstractCommand.php to the following gets it working, but I am unsure of the implications: &lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;if ($this-&amp;gt;getHelper(&apos;db&apos;)) {
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Doctrine 2.0.3, PHP 5.3.5</environment>
            <key id="12510">DMIG-21</key>
            <summary>Call to undefined method Doctrine\DBAL\Migrations\Tools\Console\Command\StatusCommand::getApplication()</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="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="lfeistel">Lee Feistel</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Mar 2011 14:41:20 +0000</created>
                <updated>Wed, 16 Nov 2011 22:09:33 +0000</updated>
                                                                            <due></due>
                    <votes>2</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="15639" author="artefact2" created="Wed, 30 Mar 2011 10:41:19 +0000"  >&lt;p&gt;I have this issue too with the &quot;packaged&quot; Doctrine 2.0.3 availible at &lt;a href=&quot;http://www.doctrine-project.org/downloads/DoctrineORM-2.0.3-full.tar.gz&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/downloads/DoctrineORM-2.0.3-full.tar.gz&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Weirdly enough, the method is availible in the latest master, cf. &lt;a href=&quot;https://github.com/symfony/Console/blob/master/Command/Command.php#L88&quot; class=&quot;external-link&quot;&gt;https://github.com/symfony/Console/blob/master/Command/Command.php#L88&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="15679" author="wilmoore" created="Mon, 4 Apr 2011 19:20:26 +0000"  >&lt;p&gt;I also confirm this behavior. I&apos;ve also verified that this issue can be resolved by grabbing the latest (HEAD) from the Symfony repo.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-19] migrations diff with columnDefinition</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-19</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;When an attribute has a @Column(columnDefinition=...) parameter, migrations:diff always causes false positives.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12454">DMIG-19</key>
            <summary>migrations diff with columnDefinition</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="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="arnaud-lb">arnaud-lb</reporter>
                        <labels>
                    </labels>
                <created>Sun, 6 Mar 2011 10:14:49 +0000</created>
                <updated>Wed, 16 Nov 2011 22:09:33 +0000</updated>
                                                                            <due></due>
                    <votes>3</votes>
                        <watches>3</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-18] diffing causes lots of false positives (on postgresql)</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-18</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;I am playing around with the diff tool and noticing that a lot of false positives are generated, like using SERIAL creates Sequences that are not explicitly listed, causing the diff tool to believe that they should be dropped. Or using &quot;array&quot; as a datatype makes the diff tool believe that there was a type change since they are setup as TEXT. now the alter statement then actually specifies to alter it form TEXT to TEXT again.&lt;/p&gt;

&lt;p&gt;I guess the fact is that just more work needs to be put in here and I guess if I want things to improve I should step up, especially if I care about such an &quot;obsure&quot; database as Postresql &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</description>
                <environment>PostgreSQL 9.0</environment>
            <key id="12406">DMIG-18</key>
            <summary>diffing causes lots of false positives (on postgresql)</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="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="lsmith">Lukas Kahwe</reporter>
                        <labels>
                    </labels>
                <created>Fri, 18 Feb 2011 15:33:48 +0000</created>
                <updated>Wed, 16 Nov 2011 22:09:34 +0000</updated>
                                                                            <due></due>
                    <votes>2</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="15857" author="ilanco" created="Sat, 14 May 2011 23:26:04 +0000"  >&lt;p&gt;I have noticed the same problems when using @GeneratedValue(strategy=&quot;IDENTITY&quot;).&lt;br/&gt;
Postgres will create a sequence which doctrine does not manage. When running a schema validation doctrine fails because the diff tool&lt;br/&gt;
believes the sequences should not be in the database. &lt;br/&gt;
Same problem when trying to update the schema with --complete, doctrine will run queries to drop the sequences.&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;

&lt;p&gt;Ilan&lt;/p&gt;</comment>
                    <comment id="16118" author="lsmith" created="Tue, 5 Jul 2011 12:38:01 +0000"  >&lt;p&gt;likely solved with &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-42&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-42&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="16460" author="kiang" created="Sat, 10 Sep 2011 07:52:42 +0000"  >&lt;p&gt;Currently, sequences won&apos;t be dropped when using diff tool (latest version from github downloaded today). But it still drops the default value like &apos;nextval(&apos;xxx_seq&apos;)&apos;. As the database wasn&apos;t used by doctrine2 only, dropping default value like that caused some problems in my environment.&lt;/p&gt;</comment>
                    <comment id="16461" author="kiang" created="Sat, 10 Sep 2011 08:24:14 +0000"  >&lt;p&gt;well... the diff is not reliable currently as all the indexes, constraints were affected and serial, bigserial fields would be replaced using int and bigint...&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-17] bug in reverting migrations</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-17</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;I create entities from doctrine getting started tutorial &lt;a href=&quot;http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/getting-started-xml-edition.html&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/getting-started-xml-edition.html&lt;/a&gt;&lt;br/&gt;
It&apos;s Bug, User, Project (in attach)&lt;br/&gt;
and create config migrations.yml (in attach)&lt;/p&gt;

&lt;p&gt;after that i run command &quot;./doctrine migrations:diff&quot; which generated migration file Version20110115224434.php (in attach)&lt;br/&gt;
&quot;./doctrine migrations:migrate&quot; work normal &lt;br/&gt;
but &quot;./doctrine migrations:migrate 0&quot; dosn&apos;t work:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Migrating down to 0 from 20110115224434&lt;/p&gt;

&lt;p&gt;  &amp;#8211; reverting 20110115224434&lt;/p&gt;

&lt;p&gt;     -&amp;gt; ALTER TABLE bug_product DROP FOREIGN KEY &lt;br/&gt;
Migration 20110115224434 failed during Execution. Error SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;HY000&amp;#93;&lt;/span&gt;: General error: 1005 Can&apos;t create table &apos;doctrine2.#sql-531_108&apos; (errno: 150)&lt;/p&gt;



&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;PDOException&amp;#93;&lt;/span&gt;                                                                                 &lt;br/&gt;
  SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;HY000&amp;#93;&lt;/span&gt;: General error: 1005 Can&apos;t create table &apos;doctrine2.#sql-531_108&apos; (errno: 150) &lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment>Linux stfalcon-laptop 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010 x86_64 GNU/Linux&lt;br/&gt;
Installed packages, channel pear.doctrine-project.org:&lt;br/&gt;
======================================================&lt;br/&gt;
Package        Version State&lt;br/&gt;
DoctrineCommon 2.0.0   stable&lt;br/&gt;
DoctrineDBAL   2.0.0   stable&lt;br/&gt;
DoctrineORM    2.0.0   stable&lt;br/&gt;
&lt;br/&gt;
DoctrineMigration from &lt;a href=&quot;git://github.com/doctrine/migrations.git&quot;&gt;git://github.com/doctrine/migrations.git&lt;/a&gt; (2.0 alpha?)&lt;br/&gt;
</environment>
            <key id="12305">DMIG-17</key>
            <summary>bug in reverting migrations</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="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="stfalcon">Stepan Tanasiychuk</reporter>
                        <labels>
                    </labels>
                <created>Sat, 15 Jan 2011 16:06:19 +0000</created>
                <updated>Wed, 16 Nov 2011 22:09:34 +0000</updated>
                                                                            <due></due>
                    <votes>4</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="15981" author="k-fish" created="Mon, 13 Jun 2011 22:42:57 +0000"  >&lt;p&gt;The problem is the missing constraint name. I looked up the name the constraint had and added it to the statement and it worked.&lt;/p&gt;

&lt;p&gt;Since the names are generated by MySQL automatically, looking them up when generating the migration will probably not work, because the generated name might differ on another setup. What would work is creating names for the constraints and use them in create and drop operations.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10910" name="Entities.zip" size="1517" author="stfalcon" created="Sat, 15 Jan 2011 16:06:19 +0000" />
                    <attachment id="10911" name="migrations.yml" size="152" author="stfalcon" created="Sat, 15 Jan 2011 16:06:19 +0000" />
                    <attachment id="10912" name="Version20110115224434.php" size="2018" author="stfalcon" created="Sat, 15 Jan 2011 16:06:19 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-8] MySQL + Doctrine 2 + Column of type decimal with no precision or scale manually set results in infinite migration diffs generated</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-8</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;To reproduce:&lt;/p&gt;

&lt;p&gt;Create a new entity with a column type decimal @Column(type=&quot;decimal&quot;)&lt;/p&gt;

&lt;p&gt;Run the CLI tool &quot;migrations:diff&quot;&lt;/p&gt;

&lt;p&gt;Run the CLI tool &quot;migrations:migrate&quot;&lt;/p&gt;

&lt;p&gt;If you run &quot;migrations:diff&quot; again a new migration will be created with an ALTER TABLE that only affects the columns of type Decimal. You can apply these new migrations and generate more using Diff ad nauseum.&lt;/p&gt;


&lt;p&gt;My assumption is there is a mismatch between the Migrations Diff and annotation&apos;s defaults, causing it to continually identify decimal columns as requiring a migration.&lt;/p&gt;


&lt;p&gt;To avoid this issue manually set a precision and scale, everything will then work as expected.&lt;/p&gt;</description>
                <environment>Debian 5.0, PHP 5.3.3, MySQL 5.1.50, Doctrine 2.0.0BETA4, Annotations</environment>
            <key id="11988">DMIG-8</key>
            <summary>MySQL + Doctrine 2 + Column of type decimal with no precision or scale manually set results in infinite migration diffs generated</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="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="dcousineau">Daniel Cousineau</reporter>
                        <labels>
                    </labels>
                <created>Thu, 7 Oct 2010 18:39:05 +0000</created>
                <updated>Wed, 16 Nov 2011 22:09:33 +0000</updated>
                                                                            <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<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>