<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sun May 26 04:32:46 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+DC+AND+resolution+%3D+Unresolved+AND+priority+%3D+Minor+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+DC+AND+resolution+%3D+Unresolved+AND+priority+%3D+Minor+ORDER+BY+key+DESC</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="78" total="78"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DC-1059] Generate Entity From Database</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-1059</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Problem already report here : &lt;a href=&quot;https://github.com/symfony/symfony/issues/5617#issuecomment-8934524&quot; class=&quot;external-link&quot;&gt;https://github.com/symfony/symfony/issues/5617#issuecomment-8934524&lt;/a&gt;&lt;br/&gt;
But the idea is, on generation of entity from database MySQL, Int and Tinyint type are tranform as booelan.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14074">DC-1059</key>
            <summary>Generate Entity From Database</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="draeli">Draeli</reporter>
                        <labels>
                    </labels>
                <created>Thu, 27 Sep 2012 17:07:01 +0000</created>
                <updated>Thu, 27 Sep 2012 17:07:01 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-1047] hardDelete not resetting flag if exception is thrown</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-1047</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;To be honest I don&apos;t know wich version I have but I believe it to be 1.2.3&lt;/p&gt;

&lt;p&gt;The problem is pretty simple, I was trying to do a hardDelete and if it fails I would do a softDelete.&lt;br/&gt;
Example&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;try&lt;/span&gt; {
    $record-&amp;gt;hardDelete();
}
&lt;span class=&quot;code-keyword&quot;&gt;catch&lt;/span&gt; (Exception $e) {
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($e &lt;span class=&quot;code-keyword&quot;&gt;instanceof&lt;/span&gt; Doctrine_Connection_Mysql_Exception &amp;amp;&amp;amp; $e-&amp;gt;getPortableCode() == Doctrine_Core::ERR_CONSTRAINT) {
        &lt;span class=&quot;code-keyword&quot;&gt;try&lt;/span&gt; {
            $record-&amp;gt;delete();
        }
        &lt;span class=&quot;code-keyword&quot;&gt;catch&lt;/span&gt; (Exception $e1) {
            &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; $e1;
        }
    }
    &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
        &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; $e;
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But when the first exception is thrown from hardDelete() in Doctrine_Template_SoftDelete(line 84) the listener flag for hardDelete is not set to false, so if I try to do the delete, it will still behave as if it was a hardDelete.&lt;/p&gt;

&lt;p&gt;The solution would be catch the exception, reset the flag and rethrow it.&lt;br/&gt;
Patch attached&lt;/p&gt;

&lt;p&gt;Hope this info is enough.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13334">DC-1047</key>
            <summary>hardDelete not resetting flag if exception is thrown</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="lonewolf4">Lone Wolf</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Jan 2012 11:46:54 +0000</created>
                <updated>Fri, 6 Jan 2012 11:46:54 +0000</updated>
                                                                    <component>Behaviors</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                    <attachment id="11140" name="softdelete_exception.patch" size="645" author="lonewolf4" created="Fri, 6 Jan 2012 11:46:54 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-1044] record Line 2430 Unlink method Warning: Illegal offset type in sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php on line 2459</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-1044</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;When you have a new unpersisted object and you call a method to a referenced object - when calling the unlink() method on referenced object the above error is called.&lt;/p&gt;

&lt;p&gt;Warning: Illegal offset type in sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php on line 2459 &lt;/p&gt;

&lt;p&gt;eg&lt;/p&gt;

&lt;p&gt;$foo = new foo();&lt;/p&gt;

&lt;p&gt;$foo-&amp;gt;getBar(); This call will bind a reference of Bar against the foo object.&lt;/p&gt;

&lt;p&gt;$foo-&amp;gt;unlink(&apos;bar&apos;);&lt;/p&gt;

&lt;p&gt;As no objects are yet persisted, the unlink method tries to match ids on the objects that do not exist.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13239">DC-1044</key>
            <summary>record Line 2430 Unlink method Warning: Illegal offset type in sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php on line 2459</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="kylerclarke">Kyle Clarke</reporter>
                        <labels>
                    </labels>
                <created>Mon, 5 Dec 2011 00:01:28 +0000</created>
                <updated>Mon, 5 Dec 2011 00:01:28 +0000</updated>
                                    <version>1.2.3</version>
                                                <component>Record</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-1028] Doctrine Migrate functions for current version and for creating the migrations table</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-1028</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;I always tend to find myself needing to implement migrations after the fact. It would be really nice to have a method of having doctrine creating the migration_version table as well as a method of setting that value and getting that value.&lt;/p&gt;

&lt;p&gt;This would in-turn allow the implementation in a framework such as symfony to allow you insert the table after the fact, allow you to update the migration version without running the migration and to let you know what version you&apos;re currently on.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12927">DC-1028</key>
            <summary>Doctrine Migrate functions for current version and for creating the migrations table</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="isleshocky77">Stephen Ostrow</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 Aug 2011 18:54:25 +0000</created>
                <updated>Tue, 16 Aug 2011 18:54:25 +0000</updated>
                                    <version>1.2.4</version>
                                                <component>Migrations</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-1018] Circular references to named entities break during data importing</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-1018</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;If the schema specifies that records relate to each other in both directions:&lt;/p&gt;

&lt;p&gt;{{&lt;br/&gt;
Kitten:&lt;br/&gt;
 columns:&lt;br/&gt;
   basket_id: integer&lt;br/&gt;
 relations:&lt;br/&gt;
  Basket:&lt;br/&gt;
   local: basket_id&lt;/p&gt;

&lt;p&gt;Basket:&lt;br/&gt;
  columns:&lt;br/&gt;
   fluffiest_kitten_id: integer&lt;br/&gt;
  relaitons:&lt;br/&gt;
   FluffiestKitten:&lt;br/&gt;
    type: one&lt;br/&gt;
    class: Kitten&lt;br/&gt;
    local: fluffiest_kitten_id&lt;br/&gt;
}}&lt;/p&gt;

&lt;p&gt;Then a data dump for such a schema won&apos;t properly load one of the keys, e.g:&lt;/p&gt;

&lt;p&gt;{{&lt;br/&gt;
Kitten:&lt;br/&gt;
 Kitten1:&lt;br/&gt;
  Basket: Basket1&lt;/p&gt;

&lt;p&gt;Basket:&lt;br/&gt;
 Basket1:&lt;br/&gt;
  FluffiestKitten: Kitten1&lt;br/&gt;
}}&lt;/p&gt;

&lt;p&gt;Will result in either fluffiest_kitten_id or basket_id being set to 0&lt;/p&gt;

&lt;p&gt;See also ticket &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DC-555&quot; title=&quot;infinite recursion happens when saving models with circular reference&quot;&gt;&lt;del&gt;DC-555&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="12826">DC-1018</key>
            <summary>Circular references to named entities break during data importing</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="mikeseth">Mike Seth</reporter>
                        <labels>
                    </labels>
                <created>Thu, 14 Jul 2011 10:59:18 +0000</created>
                <updated>Thu, 14 Jul 2011 10:59:18 +0000</updated>
                                    <version>1.2.4</version>
                                                <component>Record</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-1017] Floats persisted in the database are retrieve as strings.</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-1017</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Someone complained about symfony padding 0&apos;s after floats &lt;a href=&quot;http://stackoverflow.com/questions/6650786/remove-extra-decimal-place-in-float-datatype-on-symfony/6663829&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/6650786/remove-extra-decimal-place-in-float-datatype-on-symfony/6663829&lt;/a&gt; , I think it&apos;s a doctrine problem, since the doctrine:dql task seems to have the same problem:&lt;/p&gt;

&lt;p&gt;&amp;gt;&amp;gt; doctrine  executing dql query&lt;br/&gt;
DQL: FROM UcVideoAspect&lt;br/&gt;
found 1 results&lt;br/&gt;
-&lt;br/&gt;
  id: &apos;1&apos;&lt;br/&gt;
  video_id: null&lt;br/&gt;
  pixel_ratio: &apos;12.50&apos;&lt;br/&gt;
  width: null&lt;br/&gt;
  height: null&lt;/p&gt;

&lt;p&gt;Here, pixel ratio is defined as a float in the schema.yml file&lt;br/&gt;
Getting the property from a transient object returns a float, while getting it from the db returns a string.&lt;/p&gt;</description>
                <environment>Ubuntu 64 bits, php 5.3</environment>
            <key id="12817">DC-1017</key>
            <summary>Floats persisted in the database are retrieve as strings.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="greg0ire">Gr&#233;goire Paris</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Jul 2011 12:11:53 +0000</created>
                <updated>Tue, 12 Jul 2011 12:11:53 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-1016] Set method in update query ignores &apos;false&apos; if passed as boolean</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-1016</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;I had to define this function:&lt;/p&gt;

&lt;p&gt;public function deactivate($segment_id)&lt;/p&gt;
    {
        $query = $this-&amp;gt;createQuery()
                -&amp;gt;update(&apos;Segment s&apos;)
                -&amp;gt;set(&apos;s.is_active &apos;, false) //not working
//              -&amp;gt;set(&apos;s.is_active &apos;, (int)false) //works ok
//              -&amp;gt;set(&apos;s.is_active &apos;, true) //works ok
                -&amp;gt;where(&apos;s.id = ?&apos;, $segment_id);
//        var_dump($query-&amp;gt;getSqlQuery());die;
        return $query-&amp;gt;execute();
    }

&lt;p&gt;Problem is that when setting a column using boolean false you get invalid SQL query like this:&lt;br/&gt;
UPDATE segment SET is_active  =  WHERE (id = ?)&lt;/p&gt;

&lt;p&gt;Workaround is to do it like this: set(&apos;s.is_active &apos;, (int)false) , but since setting the same column with boolean true works, false should work too.&lt;/p&gt;</description>
                <environment>Symfony 1.4.11 , Ubuntu 11, PHP 5.3</environment>
            <key id="12788">DC-1016</key>
            <summary>Set method in update query ignores &apos;false&apos; if passed as boolean</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="pawelbaranski">Pawe&#322; Bara&#324;ski</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Jul 2011 10:23:33 +0000</created>
                <updated>Tue, 5 Jul 2011 10:23:33 +0000</updated>
                                    <version>1.2.4</version>
                                                <component>Query</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-1012] Doctrine_core specified twice in documentation Defining Models -&gt; Join Table Associations</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-1012</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;$manager-&amp;gt;setAttribute(Doctrine_Core::Doctrine_Core::ATTR_QUOTE_IDENTIFIER, true);&lt;/p&gt;

&lt;p&gt;should be:&lt;/p&gt;

&lt;p&gt;$manager-&amp;gt;setAttribute(Doctrine_Core::ATTR_QUOTE_IDENTIFIER, true);&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/projects/orm/1.2/docs/manual/defining-models/en#relationships:join-table-associations&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/projects/orm/1.2/docs/manual/defining-models/en#relationships:join-table-associations&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="12759">DC-1012</key>
            <summary>Doctrine_core specified twice in documentation Defining Models -&gt; Join Table Associations</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="gamesh">Justinas</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Jun 2011 10:04:44 +0000</created>
                <updated>Tue, 28 Jun 2011 10:04:44 +0000</updated>
                                    <version>1.2.3</version>
                                                <component>Documentation</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-1006] Custom geometric query error with orderBy</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-1006</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Mi Doctrine_Query with this Geometric Query fails with orderBy , but with where works.&lt;/p&gt;

&lt;p&gt;$distance = &quot;glength(linestringfromwkb(linestring(GeomFromText(&apos;POINT( &quot;.$object-&amp;gt;getLatitude().&quot; &quot;.$object-&amp;gt;getLongitude() .&quot;)&apos;),l.point))) &quot;&lt;/p&gt;

&lt;p&gt;This works:&lt;br/&gt;
SomeObjectTable::getInstance()&lt;del&gt;&amp;gt;createQuery()&lt;/del&gt;&amp;gt;where($distance.&apos; &amp;lt; ?&apos;,0.05 )&lt;/p&gt;

&lt;p&gt;But this one fails at version 1.2.4, with older version was working.&lt;br/&gt;
SomeObjectTable::getInstance()&lt;del&gt;&amp;gt;createQuery()&lt;/del&gt;&amp;gt;where($distance.&apos; &amp;lt; ?&apos;,0.05 )-&amp;gt;orderBy($distance)&lt;/p&gt;

&lt;p&gt;Well the problem is at line 74 of OrderBy.php :&lt;br/&gt;
$componentAlias = implode(&apos;.&apos;, $e);&lt;/p&gt;



&lt;p&gt;the rendered query in the distance has some &quot;.&quot;, for example:&lt;br/&gt;
POINT( -34.470829 -58.5286102)&lt;/p&gt;

&lt;p&gt;then the after line 74 in OrderBy tries to search por &apos;58&apos; class.&lt;/p&gt;

&lt;p&gt;I manually added to DataDict in Mysql.php the POINT datatype (this fix solve me the problem in older versions of Doctrine).&lt;/p&gt;
</description>
                <environment>Symfony 1.4.11 and Doctrine 1.2.4. Ubuntu 11.04 Apache2 with mod php5. php5 version PHP 5.3.5-1ubuntu7.2 with Suhosin-Patch </environment>
            <key id="12659">DC-1006</key>
            <summary>Custom geometric query error with orderBy</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="llazzaro">Leonardo Lazzaro</reporter>
                        <labels>
                    </labels>
                <created>Sun, 22 May 2011 19:41:17 +0000</created>
                <updated>Sun, 22 May 2011 19:41:17 +0000</updated>
                                    <version>1.2.4</version>
                                <fixVersion>1.2.2</fixVersion>
                                <component>Attributes</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-1005] Schema importer sometimes overwrites relations (instead of adding them) due to issue with bugfix DC-281</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-1005</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;The bugfix for &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DC-281&quot; title=&quot;Generate Models Db changes case in Relationship definition.&quot;&gt;&lt;del&gt;DC-281&lt;/del&gt;&lt;/a&gt; (r6802) contains an issue:&lt;/p&gt;

&lt;p&gt;When between two tables in a MySQL database there are two relations, one on both sides (i.e. both tables have a FK field to each other), one of the two is overwritten with the second by the schema importer. That is, at one class, there seems to be only one relation instead of both.&lt;/p&gt;

&lt;p&gt;The issue came in when the decision was made to store all class names in the definition array lower case, as one of the lookups in the array was not updated appropriately.&lt;/p&gt;

&lt;p&gt;See Doctrine/Import.php (1.2.4) line 416 - 435. In line 427, you can clearly see the change made in 6802&lt;/p&gt;

&lt;p&gt;Old:&lt;br/&gt;
&lt;tt&gt;$definitions[$relation&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;class&amp;#39;&amp;#93;&lt;/span&gt;]&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;relations&amp;#39;&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;$alias&amp;#93;&lt;/span&gt; = array(&lt;/tt&gt;&lt;br/&gt;
New:&lt;br/&gt;
&lt;tt&gt;$definitions[strtolower($relation&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;class&amp;#39;&amp;#93;&lt;/span&gt;)]&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;relations&amp;#39;&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;$alias&amp;#93;&lt;/span&gt; = array(&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Line 421 however should also have been updated:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;if (in_array($relation&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;class&amp;#39;&amp;#93;&lt;/span&gt;, $relClasses) || isset($definitions[$relation&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;class&amp;#39;&amp;#93;&lt;/span&gt;]&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;relations&amp;#39;&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;$className&amp;#93;&lt;/span&gt;)) {&lt;/tt&gt;&lt;br/&gt;
Proposed fix:&lt;br/&gt;
&lt;tt&gt;if (in_array($relation&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;class&amp;#39;&amp;#93;&lt;/span&gt;, $relClasses) || isset($definitions[strtolower($relation&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;class&amp;#39;&amp;#93;&lt;/span&gt;)]&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;relations&amp;#39;&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;$className&amp;#93;&lt;/span&gt;)) {&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;This error results in relations that already exist sometimes being overwritten.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12641">DC-1005</key>
            <summary>Schema importer sometimes overwrites relations (instead of adding them) due to issue with bugfix DC-281</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="pelleke">Pelle ten Cate</reporter>
                        <labels>
                    </labels>
                <created>Tue, 17 May 2011 11:47:49 +0000</created>
                <updated>Tue, 17 May 2011 11:47:49 +0000</updated>
                                    <version>1.2.0</version>
                <version>1.2.1</version>
                <version>1.2.2</version>
                <version>1.2.3</version>
                                                <component>Import/Export</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-1003] _processWhereIn does not allow the use of named query parameters</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-1003</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;When writing a query such as &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$query = $query-&amp;gt;where(&apos;entity.myValue = :value&apos;, array(&apos;:value&apos;=&amp;gt;5));&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;you are unable to then&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$query = $query-&amp;gt;whereIn(&apos;entity.otherValue&apos;, array(&apos;:otherValues&apos;=&amp;gt;array(1,2,3)));&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Doctrine complains that you may not mix positional and named query parameters.&lt;/p&gt;

&lt;p&gt;The attached patch fixes this by checking if the key of the passed in parameter is non numeric and if so setting the &quot;value&quot; of the parameter place holder to the value of the key.&lt;/p&gt;</description>
                <environment>karmic, php 5.2.10, apache2</environment>
            <key id="12615">DC-1003</key>
            <summary>_processWhereIn does not allow the use of named query parameters</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="alex.pilon">alex pilon</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 May 2011 21:22:56 +0000</created>
                <updated>Fri, 6 May 2011 00:06:42 +0000</updated>
                                                    <fixVersion>1.2.4</fixVersion>
                                <component>Query</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15809" author="alex.pilon" created="Thu, 5 May 2011 21:59:01 +0000"  >&lt;p&gt;I discovered an issue with the above patch. I am working on a better version.&lt;/p&gt;</comment>
                    <comment id="15810" author="alex.pilon" created="Fri, 6 May 2011 00:06:42 +0000"  >&lt;p&gt;Here is a second version.. it is a little bit sloppy. Is there a resource I can find on here that will help me to improve code quality/unit test this?&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10987" name="_processWhereIn-named-parameter-v2.patch" size="884" author="alex.pilon" created="Fri, 6 May 2011 00:06:42 +0000" />
                    <attachment id="10986" name="_processWhereIn-named-parameter.patch" size="581" author="alex.pilon" created="Thu, 5 May 2011 21:22:56 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-1001] Doctrine Caching page does not mention the &quot;prefix&quot; option</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-1001</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/documentation/manual/1_1/en/caching&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/documentation/manual/1_1/en/caching&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When not using a prefix with multiple / yet similay projects a mixup of query caching will occur (for example with sfDoctrineGuard queries). This is very easialy fixed with a prefix - but I only realized after two months - that this feature actually existed. There is no mention of this in the documention.&lt;/p&gt;

&lt;p&gt;A mention of the feature &lt;/p&gt;

&lt;p&gt;$q = Doctrine_Query::create()&lt;br/&gt;
    -&amp;gt;useResultCache(new Doctrine_Cache_Apc(array(&apos;prefix&apos;=&amp;gt;&apos;myproject_&apos;)));&lt;/p&gt;

&lt;p&gt;Would have helped me and I think it will also help others.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12595">DC-1001</key>
            <summary>Doctrine Caching page does not mention the &quot;prefix&quot; option</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="romanb">Roman S. Borschel</assignee>
                                <reporter username="arendvw">Arend van Waart</reporter>
                        <labels>
                    </labels>
                <created>Fri, 29 Apr 2011 19:26:40 +0000</created>
                <updated>Mon, 27 Jun 2011 18:14:37 +0000</updated>
                                    <version>1.2.4</version>
                                                <component>Caching</component>
                <component>Documentation</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16083" author="grass" created="Mon, 27 Jun 2011 18:14:37 +0000"  >&lt;p&gt;I concur with Arend - mentioning of &apos;prefix&apos; in the documentation could make this valuable feature much less of a pain to find...&lt;br/&gt;
Still holds true in 1.2. documentation: &lt;a href=&quot;http://www.doctrine-project.org/projects/orm/1.2/docs/manual/caching/en&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/projects/orm/1.2/docs/manual/caching/en&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-995] Doctrine deprecated in favor of Doctrine_Core - phpdoc</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-995</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/projects/orm/1.2/docs/whats-new/en&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/projects/orm/1.2/docs/whats-new/en&lt;/a&gt; clearly states that the Doctrine class is deprecated - e.g. in order to allow for proper autoloading.&lt;br/&gt;
To enable IDEs to perform proper autocomplete and to encourage programmers not to use the Doctrine class anymore, it&apos;s phpdoc block shuld by changed in order to contain a&lt;/p&gt;

&lt;p&gt;@deprecated In favor of Doctrine_Core - this class extends Doctrine_Core for BC&lt;/p&gt;</description>
                <environment>all environments</environment>
            <key id="12540">DC-995</key>
            <summary>Doctrine deprecated in favor of Doctrine_Core - phpdoc</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="grass">Pablo Grass</reporter>
                        <labels>
                    </labels>
                <created>Wed, 6 Apr 2011 13:23:53 +0000</created>
                <updated>Wed, 6 Apr 2011 13:23:53 +0000</updated>
                                    <version>1.2.3</version>
                                                <component>Documentation</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-993] Many-to-many Relation defined one way </title>
                <link>http://www.doctrine-project.org/jira/browse/DC-993</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;When a many-tomany relation has been defined on only one of the end of the relation, and ofcourse in the cross-refClass, things get weird. I&apos;ll use the &lt;b&gt;user-groups&lt;/b&gt; relation (as found in the documentation) as example.&lt;/p&gt;

&lt;p&gt;If in the &lt;b&gt;group&lt;/b&gt; model has not defined the &lt;tt&gt;hasMany&lt;/tt&gt;, then a &lt;b&gt;user&lt;/b&gt; can be instantiated and saved. When instantiated, the relation &lt;em&gt;groups&lt;/em&gt; would return an empty array, groups can ben added like:&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;$u = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; User();
var_dump($u-&amp;gt;groups);
$u-&amp;gt;groups[] = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Group();
var_dump($u-&amp;gt;groups);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;This would output an empty array, and subsequently an array containing the new group.&lt;/p&gt;

&lt;p&gt;However, if a &lt;b&gt;user&lt;/b&gt; would be retrieved from the database, and the relation &lt;em&gt;groups&lt;/em&gt; would be called, then the following message will appear (which is not helpfull at alllll, I&apos;ve spend hours figuring it out!):&lt;/p&gt;

&lt;p&gt;Uncaught exception &apos;Doctrine_Record_UnknownPropertyException&apos; with message &apos;Unknown record property / related component &quot;groups&quot;&apos; .....&lt;/p&gt;

&lt;p&gt;I will never forget this, but it&apos;s not described in the documentation and the error is not helping either. So either one of these step hvae to be taken. Or even better, making it work without requiring the &lt;tt&gt;hasMany&lt;/tt&gt; in &lt;b&gt;group&lt;/b&gt;, to &lt;em&gt;users&lt;/em&gt;.&lt;/p&gt;</description>
                <environment>MySQL database, Lenny</environment>
            <key id="12535">DC-993</key>
            <summary>Many-to-many Relation defined one way </summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="romanb">Roman S. Borschel</assignee>
                                <reporter username="kweij">Klaas van der Weij</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Apr 2011 07:09:51 +0000</created>
                <updated>Tue, 5 Apr 2011 07:09:51 +0000</updated>
                                    <version>1.2.2</version>
                <version>1.2.3</version>
                <version>1.2.4</version>
                                                <component>Relations</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-990] Values not escaped</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-990</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;When I save inputs from a form, special characters such as single quotes are inserted into the mysql database without being escaped.  It&apos;s my understanding that doctrine uses PDO and PDO should handle this escaping automatically, but it is not.  Is there a configuration setting that I can set with doctrine to enable this? &lt;/p&gt;

&lt;p&gt;Thanks&lt;br/&gt;
Nick&lt;/p&gt;</description>
                <environment>windows and linux OS, mysql database</environment>
            <key id="12501">DC-990</key>
            <summary>Values not escaped</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="knford">Nick Bartlett</reporter>
                        <labels>
                    </labels>
                <created>Sat, 26 Mar 2011 16:14:15 +0000</created>
                <updated>Sat, 26 Mar 2011 16:14:15 +0000</updated>
                                    <version>1.2.0</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-987] redundant sql statement in Doctrine_Export_Oracle::_makeAutoincrement()</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-987</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;line 121-128 of Doctrine_Export_Oracle appears to generate redundant code for creating a primary key constraint as primary keys (defined in schema.yml) are already generated during CREATE TABLE statements.&lt;/p&gt;</description>
                <environment>linux, oracle</environment>
            <key id="12481">DC-987</key>
            <summary>redundant sql statement in Doctrine_Export_Oracle::_makeAutoincrement()</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="temperedvision">David Dixon</reporter>
                        <labels>
                    </labels>
                <created>Mon, 21 Mar 2011 12:35:54 +0000</created>
                <updated>Mon, 21 Mar 2011 12:35:54 +0000</updated>
                                    <version>1.2.3</version>
                                                <component>Import/Export</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-976] Invalid long constraint name</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-976</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;When the constraint&apos;s name is too long, a shorter one is generated using information such as the name of the database. If the database&apos;s name begins with a numeric value, the constraint name also begins with a numeric value which results in an invalid constraint name.&lt;/p&gt;</description>
                <environment>OS: Linux&lt;br/&gt;
Soft platform: Symfony 1.4.8, mysql5</environment>
            <key id="12407">DC-976</key>
            <summary>Invalid long constraint name</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="mxs">S&#233;bastien Rannou</reporter>
                        <labels>
                    </labels>
                <created>Sat, 19 Feb 2011 12:46:21 +0000</created>
                <updated>Sat, 19 Feb 2011 12:47:26 +0000</updated>
                                    <version>1.2.3</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                    <attachment id="10943" name="constraint_name.patch" size="483" author="mxs" created="Sat, 19 Feb 2011 12:46:21 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-975] Treat sql server error 2601 as Doctrine_Core::ERR_ALREADY_EXISTS</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-975</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Patch attached to treat sql server error 2601 (Integrity constraint violation) as Doctrine_Core::ERR_ALREADY_EXISTS&lt;/p&gt;</description>
                <environment>Sql server</environment>
            <key id="12401">DC-975</key>
            <summary>Treat sql server error 2601 as Doctrine_Core::ERR_ALREADY_EXISTS</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="ben.davies">Ben Davies</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 Feb 2011 11:31:01 +0000</created>
                <updated>Thu, 17 Feb 2011 11:31:01 +0000</updated>
                                    <version>1.2.3</version>
                                                <component>Connection</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                    <attachment id="10942" name="Doctrine_Connection_Mssql_Exception.patch" size="844" author="ben.davies" created="Thu, 17 Feb 2011 11:31:01 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-970] Diff Tool doesn&apos;t generate the down() method if a field attribute is changed in YAML</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-970</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Diff Tool doesn&apos;t generate the down() method if a field attribute is changed in YAML. Below is an example&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;scheme.yaml&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;    email:
      type: string(255)
      fixed: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
      unsigned: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
      primary: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
      notnull: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
      autoincrement: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 
&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;scheme2.yaml&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;    email:
      type: string(160)
      fixed: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
      unsigned: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
      primary: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
      notnull: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
      autoincrement: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;And below is the generated migration class (down() method is missing): &lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;1239898949_Version39.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;class Version39 &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Doctrine_Migration_Base
{
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function up()
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;changeColumn(&apos;support_tickets&apos;, &apos;email&apos;, &apos;string&apos;, &apos;160&apos;, array(
             &apos;fixed&apos; =&amp;gt; &apos;0&apos;,
             &apos;unsigned&apos; =&amp;gt; &apos;&apos;,
             &apos;primary&apos; =&amp;gt; &apos;&apos;,
             &apos;notnull&apos; =&amp;gt; &apos;&apos;,
             &apos;autoincrement&apos; =&amp;gt; &apos;&apos;,
             ));
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function down()
    {

    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; </description>
                <environment>Doctrine 1.2 </environment>
            <key id="12096">DC-970</key>
            <summary>Diff Tool doesn&apos;t generate the down() method if a field attribute is changed in YAML</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="tbayrak">taha bayrak</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Nov 2010 12:39:14 +0000</created>
                <updated>Thu, 7 Apr 2011 05:43:56 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15706" author="66ton99" created="Thu, 7 Apr 2011 05:43:56 +0000"  >&lt;p&gt;How I can see &quot;changeColumn&quot; doesn&apos;t work in the &quot;down&quot; section&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-969] When I add a text field to a mysql table the migration code generated fails</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-969</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;I am using a database designed using schema.yml with a MySql Server.&lt;/p&gt;

&lt;p&gt;When I add a field of type text the generated code for the migrations (using diff) is as follows:&lt;/p&gt;

&lt;p&gt;$this-&amp;gt;addColumn(&apos;&amp;lt;tableName&amp;gt;&apos;, &apos;&amp;lt;fieldName&amp;gt;, &apos;text&apos;, &apos;&apos;, array(&lt;br/&gt;
             &apos;notnull&apos; =&amp;gt; &apos;&apos;,&lt;br/&gt;
             ));&lt;/p&gt;

&lt;p&gt;Which produces a MySQL error like this:&lt;/p&gt;

&lt;p&gt;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &apos;)&apos; at line 1. Failing Query: &quot;ALTER TABLE &amp;lt;tableName&amp;gt; ADD &amp;lt;fieldName&amp;gt; text()&quot;&lt;/p&gt;

&lt;p&gt;The solution I found was to manipulate manually the generated class to use an addColumn like this:&lt;/p&gt;

&lt;p&gt;$this-&amp;gt;addColumn(&apos;&amp;lt;tableName&amp;gt;&apos;, &apos;&amp;lt;fieldName&amp;gt;, &apos;text&apos;, null, array(&lt;br/&gt;
             &apos;notnull&apos; =&amp;gt; &apos;&apos;,&lt;br/&gt;
             ));&lt;/p&gt;

&lt;p&gt;Which would generate an SQL statement like this:&lt;/p&gt;

&lt;p&gt;ALTER TABLE &amp;lt;tableName&amp;gt; ADD &amp;lt;fieldName&amp;gt; text&lt;/p&gt;

&lt;p&gt;Which works fine with MySQL, don&apos;t know about other RDBMS&lt;/p&gt;</description>
                <environment>Linux, Symfony 1.4, Doctrine 1.2</environment>
            <key id="11333">DC-969</key>
            <summary>When I add a text field to a mysql table the migration code generated fails</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="mchojrin">Mauro Chojrin</reporter>
                        <labels>
                    </labels>
                <created>Fri, 7 May 2010 09:51:58 +0000</created>
                <updated>Wed, 23 Feb 2011 14:24:35 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15365" author="siegfried1e" created="Wed, 23 Feb 2011 14:24:35 +0000"  >&lt;p&gt;My understanding is that you need to put a size to the text so it will choose between tinytext, text, mediumtext, bigtext, so instead of &lt;br/&gt;
$this-&amp;gt;addColumn(&apos;&amp;lt;tableName&amp;gt;&apos;, &apos;&amp;lt;fieldName&amp;gt;, &apos;text&apos;, &apos;&apos;, array(&lt;br/&gt;
&apos;notnull&apos; =&amp;gt; &apos;&apos;,&lt;br/&gt;
));&lt;br/&gt;
use &lt;br/&gt;
$this-&amp;gt;addColumn(&apos;&amp;lt;tableName&amp;gt;&apos;, &apos;&amp;lt;fieldName&amp;gt;, &apos;text&apos;, &apos;&amp;lt;somenumber&amp;gt;&apos;, array(&lt;br/&gt;
&apos;notnull&apos; =&amp;gt; &apos;&apos;,&lt;br/&gt;
));&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-965] Doctrine is passing timestamps to Doctrine_Validator_Unsigned</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-965</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Since April last year I&apos;ve been unable to use Doctrine Timestampable functionality because I get errors like this:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Uncaught exception &apos;Doctrine_Validator_Exception&apos; with message &apos;Validation failed in class XXX 1 field had validation error: * 1 validator failed on created_at (unsigned) &apos; in ...&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I&apos;ve tried lots of different configurations for the timestampable functionality (see &lt;a href=&quot;http://stackoverflow.com/questions/2594736/doctrine-unsigned-validation-error-storing-created-at&quot; class=&quot;external-link&quot;&gt;my Stack Overflow question&lt;/a&gt; for details) to no avail.&lt;/p&gt;

&lt;p&gt;I&apos;ve done some further investigation and the reason for the problem is that the timestamps are being sent to Doctrine_Validator_Unsigned for validation; they are then failing the following regexp test:&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;if&lt;/span&gt; (preg_match(&apos;/[^0-9\-\.]/&apos;, $value)) {
            &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;

&lt;p&gt;I&apos;m not smart enough to figure out why Doctrine is calling an unsigned validation test for these timestamps, so for now I&apos;ve fixed the problem by hacking the following into Doctrine_Validator_Unsigned:&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;if&lt;/span&gt; (preg_match(&apos;/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/&apos;, $value)) {
            &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;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Very ugly I know, but when I add this in the rest of the timestamping functionality works perfectly. Would love to get to the bottom of this bug - is particularly strange because nobody else seems to be experiencing it.&lt;/p&gt;</description>
                <environment>Debian Lenny (5.0.8) with MySQL (5.0.51a-24+lenny5O). Doctrine hosted within CodeIgniter v1.7.2</environment>
            <key id="12377">DC-965</key>
            <summary>Doctrine is passing timestamps to Doctrine_Validator_Unsigned</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="alexatkeplar">Alex Dean</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Feb 2011 05:15:38 +0000</created>
                <updated>Fri, 11 Feb 2011 05:57:09 +0000</updated>
                                    <version>1.2.2</version>
                <version>1.2.3</version>
                                                <component>Validators</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15250" author="alexatkeplar" created="Fri, 11 Feb 2011 05:57:09 +0000"  >&lt;p&gt;Added CodeIgniter details to environment&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-964] Alias name error when using interval(MySQL)</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-964</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;I&apos;m using Doctrine with Symfony and i have some troubles when i&apos;m using the mysql command: interval. Here&apos;s a detailed explanation:&lt;br/&gt;
Part of the schema:&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-xml&quot;&gt;User:
  columns:
    name: { type: string(255), notnull: true }
    nick: { type: string(255), notnull: true, unique: true }
    email: { type: string(255), notnull: true, unique: true }
    password: { type: string(40), notnull: true }

VirtualConferenceRoom:
  columns:
    adminId: { type: integer, notnull: true }
    name: { type: string(255), notnull: true }
    startDate: { type: timestamp, notnull: true }
    duration: { type: integer, notnull: true }
  relations:
    Admin:
      class: User
      foreign: id
      local: adminId

VirtualConferenceRoomUser:
  columns:
    virtualConferenceRoomId: { type: integer, notnull: true }
    userId: { type: integer, notnull: true }
  relations:
    VirtualConferenceRoom:
      class: VirtualConferenceRoom
      foreign: id
      local: virtualConferenceRoomId
    User:
      class: User
      foreign: id
      local: userId
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;I&apos;ve generated my model with symfony&apos;s built in command(symfony doctrine:build --model --sql)&lt;br/&gt;
When I try to get the conference rooms which are in progress at the moment I try it like this:&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-comment&quot;&gt;// In the project/lib/model/doctrine/VirtualConferenceRoomTable.class.php which is &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; from Doctrine_Table
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getRoomsInProgressByUserId($userId)
{
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; Doctrine_Query::create()
                -&amp;gt;select(&apos;vcr.*&apos;)
                -&amp;gt;from(&apos;VirtualConferenceRoom vcr&apos;)
                -&amp;gt;innerJoin(&apos;vcr.VirtualConferenceRoomUser vcru&apos;)
                -&amp;gt;where(&apos;(vcr.StartDate &amp;lt; now()) and (vcr.StartDate + interval vcr.Duration minute &amp;gt; now()) and vcru.UserId = ?&apos;, array($userId))
                -&amp;gt;execute();
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;When I try to run my app I get an error message: &quot;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42S22&amp;#93;&lt;/span&gt;: Column not found: 1054 Unknown column &apos;vcr.Duration&apos; in &apos;where clause&apos;&quot;&lt;br/&gt;
The generated sql command is: &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-sql&quot;&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot; &lt;span class=&quot;code-keyword&quot;&gt;SELECT&lt;/span&gt; v.id AS v__id, v.userid AS v__userid, v.name AS v__name, v.startdate AS v__startdate, v.duration AS v__duration &lt;span class=&quot;code-keyword&quot;&gt;FROM&lt;/span&gt; virtual_conference_room v INNER JOIN virtual_conference_room_user v2 ON v.id = v2.virtualconferenceroomid &lt;span class=&quot;code-keyword&quot;&gt;WHERE&lt;/span&gt; (v.startdate &amp;lt; NOW() AND v.startdate + interval vcr.Duration minute &amp;gt; NOW() AND v2.userid = ?) - (2)&quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The problem is the vcr.Duration section. If I change my function from:&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;-&amp;gt;where(&apos;(vcr.StartDate &amp;lt; now()) and (vcr.StartDate + interval vcr.Duration minute &amp;gt; now()) and vcru.UserId = ?&apos;, array($userId))
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;to:&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;-&amp;gt;where(&apos;(vcr.StartDate &amp;lt; now()) and (vcr.StartDate + interval v.Duration minute &amp;gt; now()) and vcru.UserId = ?&apos;, array($userId))
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;it works perfectly. &lt;/p&gt;

&lt;p&gt;I hope my report is useful and clear and i can help you to improve this great ORM &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;br/&gt;
Best wishes: Tibor Erd&#233;sz &amp;lt;erdeszt@gmail.com&amp;gt;&lt;/p&gt;</description>
                <environment>PHP Version 5.3.3-1ubuntu9.3; Apache/2.2.16 (Ubuntu); MySQL: 5.1.41; Symfony 1.4; Doctrine 1.2.3 (Revision: 7490)</environment>
            <key id="12352">DC-964</key>
            <summary>Alias name error when using interval(MySQL)</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="erdeszt">Tibor Erd&#233;sz</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 Feb 2011 07:29:35 +0000</created>
                <updated>Thu, 3 Feb 2011 07:37:28 +0000</updated>
                                    <version>1.2.3</version>
                                                <component>Query</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15221" author="erdeszt" created="Thu, 3 Feb 2011 07:34:38 +0000"  >&lt;p&gt;Just figured out that I can use &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;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; notations and I fixed my report. &lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-959] DSN style problems in documentation 1.2</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-959</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;This page:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/projects/orm/1.2/docs/manual/introduction-to-connections/en&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/projects/orm/1.2/docs/manual/introduction-to-connections/en&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;states the DSN can either be provided as an associative array or as a string, but it&apos;s not true, specially if you&apos;re doing lazy connection, because this type of connection only accepts doctrine dsn style and it doesn&apos;t seem to know how to handle unix socket type connections (is it correct?).&lt;/p&gt;

&lt;p&gt;I would suggest the manual clarify that lazy connection will only accept string type dsn and also will &lt;b&gt;not&lt;/b&gt; accept socket connections.&lt;/p&gt;

&lt;p&gt;Related links:&lt;br/&gt;
&lt;a href=&quot;http://groups.google.com/group/doctrine-user/browse_thread/thread/1eecb07a2f6df447/3e74857c3a076939?lnk=gst&amp;amp;q=dsn#3e74857c3a076939&quot; class=&quot;external-link&quot;&gt;http://groups.google.com/group/doctrine-user/browse_thread/thread/1eecb07a2f6df447/3e74857c3a076939?lnk=gst&amp;amp;q=dsn#3e74857c3a076939&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DC-647&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DC-647&lt;/a&gt;&lt;/p&gt;</description>
                <environment>MAMP</environment>
            <key id="12326">DC-959</key>
            <summary>DSN style problems in documentation 1.2</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="duli">Luis Felipe</reporter>
                        <labels>
                    </labels>
                <created>Tue, 25 Jan 2011 21:28:26 +0000</created>
                <updated>Tue, 25 Jan 2011 21:28:26 +0000</updated>
                                    <version>1.2.3</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-950] Doctrine_Record magic _set() doesn&apos;t validate field type for timestamp/datetime/etc..</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-950</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;So I ran into this recently. the magic _set() in Doctrine_Record doesn&apos;t check/validate the type of the field. The use case is when you you do something like:&lt;br/&gt;
setCreatedAt(time()); This will not work correctly with date/time or timestamp types in Doctrine, even though Propel handles this fine. Also MYSQL will not throw an error with default sql_mode and will put garbage data into the database.&lt;/p&gt;

&lt;p&gt;The only way to generate the right date/time value is to always format that string with the &quot;right&quot; format. This should be easier and can be easier if it supported either a timestamp (time() or a DateTime() object (just like Symfony plugin does for setDateTimeObject() function). This is just a few lines of code, let me know if I should attach a patch.&lt;/p&gt;

&lt;p&gt;I would love to see the Doctrine_Record implement this functionality. There&apos;s a ton of results on frustrated users trying to figure out how to set the date/time values properly using Doctrine.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12248">DC-950</key>
            <summary>Doctrine_Record magic _set() doesn&apos;t validate field type for timestamp/datetime/etc..</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="gena01">Gennady Feldman</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 Dec 2010 20:38:39 +0000</created>
                <updated>Mon, 24 Jan 2011 11:36:01 +0000</updated>
                                    <version>1.2.3</version>
                                                <component>Record</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15180" author="gena01" created="Mon, 24 Jan 2011 11:34:17 +0000"  >&lt;p&gt;Symfony actually added a work around by writing another function &quot;setDateTimeObject()&quot; to set these fields in a more friendly way. Ideally I would love to see support for time() and date_create() natively in Doctrine.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-948] 3 underscores in my yaml file lead to error</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-948</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;I had this yaml:&lt;/p&gt;

&lt;p&gt;OldAppellations:&lt;/p&gt;

&lt;p&gt;  connection: doctrine&lt;/p&gt;

&lt;p&gt;  tableName: old_appellations&lt;/p&gt;

&lt;p&gt;  columns:&lt;/p&gt;

&lt;p&gt;    appellations___sql: &lt;/p&gt;
{ type: text }

&lt;p&gt;    appellationsapcode_sql: &lt;/p&gt;
{ type: text }

&lt;p&gt;    appellationsappellation_sql: &lt;/p&gt;
{ type: text }

&lt;p&gt;    appellationscolor_sql: &lt;/p&gt;
{ type: text }

&lt;p&gt;    appellationscountry_sql: &lt;/p&gt;
{ type: text }

&lt;p&gt;    appellationsregion_sql: &lt;/p&gt;
{ type: text }

&lt;p&gt;    appellationsregion_for_link_sql: &lt;/p&gt;
{ type: text }

&lt;p&gt;    appellationssubt_sql: &lt;/p&gt;
{ type: text }

&lt;p&gt;    appellationstaster_appel_sql: &lt;/p&gt;
{ type: text }

&lt;p&gt;    appellationstotal_r_sql: &lt;/p&gt;
{ type: text }

&lt;p&gt;    appellationstype_sql: &lt;/p&gt;
{ type: text }

&lt;p&gt;    export_record_id_sql: &lt;/p&gt;
{ type: text }


&lt;p&gt;I got this error:&lt;/p&gt;

&lt;p&gt;Notice: Undefined index: o__appellations in /home/lkrubner/dev/tastingnotes/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Hydrator/Graph.php on line 302&lt;br/&gt;
Notice: Undefined index: in /home/lkrubner/dev/tastingnotes/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Hydrator/Graph.php on line 303&lt;br/&gt;
Fatal error: Call to a member function getFieldName() on a non-object in /home/lkrubner/dev/tastingnotes/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Hydrator/Graph.php on line 304&lt;/p&gt;


&lt;p&gt;Then I changed the 3 underscores to 1:&lt;/p&gt;

&lt;p&gt;    appellations_sql: &lt;/p&gt;
{ type: text }

&lt;p&gt;I rebuilt the model and the error was gone. &lt;/p&gt;

&lt;p&gt;More details and screenshots are here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.symfonyexperts.com/question/show/id/178&quot; class=&quot;external-link&quot;&gt;http://www.symfonyexperts.com/question/show/id/178&lt;/a&gt;&lt;/p&gt;</description>
                <environment>Linux 2.6.31-15-generic #50-Ubuntu SMP Tue Nov 10 14:54:29 UTC 2009&lt;br/&gt;
&lt;br/&gt;
Symfony 1.4</environment>
            <key id="12211">DC-948</key>
            <summary>3 underscores in my yaml file lead to error</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="lkrubner">Lawrence Krubner</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 Dec 2010 11:44:39 +0000</created>
                <updated>Thu, 9 Dec 2010 11:44:39 +0000</updated>
                                                                    <component>Schema Files</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-947] getRandom() method for Doctrine_Table</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-947</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Consider adding this method into Doctrine_Table&lt;/p&gt;

&lt;p&gt;public static function getRandom()&lt;br/&gt;
{&lt;br/&gt;
    return&lt;br/&gt;
    self::getInstance()-&amp;gt;createQuery()			&lt;br/&gt;
        -&amp;gt;select(&apos;*, RANDOM() as rand&apos;)&lt;br/&gt;
        -&amp;gt;limit(1)&lt;br/&gt;
        -&amp;gt;orderBy(&apos;rand&apos;)&lt;br/&gt;
        -&amp;gt;fetchOne();&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;It is portable and very useful.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12205">DC-947</key>
            <summary>getRandom() method for Doctrine_Table</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="maxtsepkov">ddead profile</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 Dec 2010 05:42:23 +0000</created>
                <updated>Wed, 8 Dec 2010 05:42:23 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-945] Doctrine_Query::create()-&gt;where(&apos;table.field =&apos;) unexpectedly returns a result</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-945</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;While firing the following query with Doctrine, I did not expect Doctrine to return me a record, however, even though there is a syntax error (in my opinion) it gave me the first record of the table.&lt;/p&gt;

&lt;p&gt;$q = \Doctrine_Query::create()&lt;br/&gt;
-&amp;gt;from(&apos;User u&apos;)&lt;br/&gt;
-&amp;gt;where(&apos;u.Id =&apos;, $userId);&lt;/p&gt;

&lt;p&gt;$r = $q-&amp;gt;fetchOne();&lt;/p&gt;

&lt;p&gt;Note that the question mark in the where method is ommitted. This will return a User model with an Id of 1.&lt;/p&gt;

&lt;p&gt;I would expect this to generate an invalid SQL statement (or even fail to pass the DQL validation). &lt;/p&gt;

&lt;p&gt;Giving the first record doesn&apos;t seem to be appropriate in my opinion.&lt;/p&gt;</description>
                <environment>PHP 5.3.0</environment>
            <key id="12198">DC-945</key>
            <summary>Doctrine_Query::create()-&gt;where(&apos;table.field =&apos;) unexpectedly returns a result</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="romanb">Roman S. Borschel</assignee>
                                <reporter username="johnhuijbers">John Huijbers</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 Dec 2010 09:06:07 +0000</created>
                <updated>Tue, 7 Dec 2010 03:16:02 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-943] Memory leaks in find* magic methods owing to failure to free queries</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-943</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;The following methods on Doctrine_Table create Doctrine_Query objects that are never free()d:&lt;br/&gt;
  findAll()&lt;br/&gt;
  findBySql()&lt;br/&gt;
  findByDql()&lt;br/&gt;
  findBy()&lt;br/&gt;
  findOneBy() &lt;/p&gt;</description>
                <environment></environment>
            <key id="12188">DC-943</key>
            <summary>Memory leaks in find* magic methods owing to failure to free queries</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="garpini">Garpini</reporter>
                        <labels>
                    </labels>
                <created>Fri, 3 Dec 2010 08:39:53 +0000</created>
                <updated>Fri, 3 Dec 2010 10:30:42 +0000</updated>
                                    <version>1.2.3</version>
                                                <component>Query</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="14896" author="garpini" created="Fri, 3 Dec 2010 10:30:42 +0000"  >&lt;p&gt;The attachment contains a patch that addresses the memory leak by free()ing the query objects generated before returning the results of the query.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10882" name="doctrine_query_patch.patch" size="1568" author="garpini" created="Fri, 3 Dec 2010 10:30:42 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-923] Documentation 1.2 #working-with-models error</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-923</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;In documentation&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/projects/orm/1.2/docs/manual/working-with-models/en#many-to-many-relations:creating-a-new-link&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/projects/orm/1.2/docs/manual/working-with-models/en#many-to-many-relations:creating-a-new-link&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There&apos;s an error in example code:&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-comment&quot;&gt;// test.php
&lt;/span&gt;
&lt;span class=&quot;code-comment&quot;&gt;// ...
&lt;/span&gt;$user = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; User();
$user-&amp;gt;username = &apos;Some User&apos;;
$user-&amp;gt;Groups[0]-&amp;gt;username = &apos;Some Group&apos;;
$user-&amp;gt;Groups[1]-&amp;gt;username = &apos;Some Other Group&apos;;
$user-&amp;gt;save();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The error is on lines:&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;$user-&amp;gt;Groups[0]-&amp;gt;username = 
$user-&amp;gt;Groups[1]-&amp;gt;username = 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;they shoud be:&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;$user-&amp;gt;Groups[0]-&amp;gt;name = 
$user-&amp;gt;Groups[1]-&amp;gt;name = 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;as there&apos;s no username column in schema.yml definition of Group object.&lt;/p&gt;</description>
                <environment>Ubuntu 10.4, LAMP</environment>
            <key id="12089">DC-923</key>
            <summary>Documentation 1.2 #working-with-models error</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="martin">Martin Babic</reporter>
                        <labels>
                    </labels>
                <created>Wed, 10 Nov 2010 06:17:30 +0000</created>
                <updated>Wed, 10 Nov 2010 06:27:30 +0000</updated>
                                                                    <component>Documentation</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-905] Fields with foreign key shouldn&apos;t require definition</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-905</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Sample schema attached.&lt;/p&gt;

&lt;p&gt;Now, keeping attached schema in mind. &lt;/p&gt;

&lt;p&gt;We have core tables that lots of other tables refer via foreign keys to them, like user, company, etc. &lt;/p&gt;

&lt;p&gt;We need to explicitly define foreign keys (like user_id) &quot;definitely same as&quot; User.id on each table. By design, this seems unnecessary, and has load on refactoring processes, ie. type change on User.id. &lt;/p&gt;

&lt;p&gt;Doctrine is already parsing foreign relations from schema, It can use parent table field definition (User.id) in refering table fields (user_id) and on the schema user_id can be defined as:&lt;/p&gt;

&lt;p&gt;user_id: ~&lt;/p&gt;</description>
                <environment></environment>
            <key id="12041">DC-905</key>
            <summary>Fields with foreign key shouldn&apos;t require definition</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="romanb">Roman S. Borschel</assignee>
                                <reporter username="lashae">Alaattin Kahramanlar</reporter>
                        <labels>
                    </labels>
                <created>Fri, 29 Oct 2010 07:51:21 +0000</created>
                <updated>Sun, 31 Oct 2010 03:31:51 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                    <attachment id="10832" name="schema.yml" size="1383" author="lashae" created="Fri, 29 Oct 2010 07:53:41 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-901] Several test cases using CRLF endings</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-901</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Hi there. I&apos;m finding several test cases that are using CRLF line endings, instead of the standard UNIX LF line endings as it seems the rest of the codebase uses.&lt;/p&gt;

&lt;p&gt;The test case files are as follows:&lt;/p&gt;

&lt;p&gt;tests/Ticket/2158TestCase.php&lt;br/&gt;
tests/Ticket/2251TestCase.php&lt;br/&gt;
tests/Ticket/2334TestCase.php&lt;br/&gt;
This is causing my git pull on the doctrine 1 github repository to fail due to so called &quot;unmerged&quot; files, and has rendered my git submodule for doctrine just about useless.&lt;/p&gt;

&lt;p&gt;I&apos;d appreciate it if someone would run a fromdos on these files and commit them.&lt;/p&gt;</description>
                <environment>Windows 7 x86_64, PHP 5.3</environment>
            <key id="12031">DC-901</key>
            <summary>Several test cases using CRLF endings</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="obsidian">Damian Bushong</reporter>
                        <labels>
                    </labels>
                <created>Sun, 24 Oct 2010 10:09:25 +0000</created>
                <updated>Sun, 24 Oct 2010 10:09:25 +0000</updated>
                                    <version>1.2.4</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-900] HYDRATE_SINGLE_SCALAR option always returns false </title>
                <link>http://www.doctrine-project.org/jira/browse/DC-900</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;I notice that the fetchone with HYDRATE_SINGLE_SCALAR option always returns false as the return to the $collection object is a string type, this is returned by the hydrateResultSet with driver mode set to 6 (I assume this is for scalar values)&lt;/p&gt;

&lt;p&gt;My code is a two table query with which returns a string of &quot;10&quot; (g.id in query below) and returns false because it is not a doctrine collection, I did check the doctrine examples and it seems to be the way its used. Not sure if its the doctrine version issue with symfony, my code or an actual bug&lt;/p&gt;

&lt;p&gt;        $q = Doctrine_Core::getTable(&apos;ClipGroup&apos;)&lt;br/&gt;
                        -&amp;gt;createQuery(&apos;g&apos;)&lt;br/&gt;
                        -&amp;gt;select(&apos;g.id&apos;)&lt;br/&gt;
                        -&amp;gt;leftJoin(&apos;g.sfGuardUser u&apos;)&lt;br/&gt;
                        -&amp;gt;Where(&apos;g.completed_at IS NULL&apos;)&lt;br/&gt;
                        -&amp;gt;andWhere(&apos;g.expires_at &amp;gt; ?&apos;, date(&apos;Y-m-d H:i:s&apos;, time()))&lt;br/&gt;
                        -&amp;gt;andWhere(&apos;u.id = ?&apos;, $userId);&lt;br/&gt;
        return $q-&amp;gt;fetchOne(array(), Doctrine_Core::HYDRATE_SINGLE_SCALAR);&lt;/p&gt;

&lt;p&gt; I am using doctrine included in symfony 1.4.3, here is the comment on the Query.php file  * @version     $Revision: 6792 $, &lt;br/&gt;
    public function fetchOne($params = array(), $hydrationMode = null)&lt;br/&gt;
    {&lt;br/&gt;
        $collection = $this-&amp;gt;execute($params, $hydrationMode);&lt;/p&gt;

&lt;p&gt;        if (count($collection) === 0) &lt;/p&gt;
{
            return false;
        }

&lt;p&gt;        if ($collection instanceof Doctrine_Collection) &lt;/p&gt;
{
            return $collection-&amp;gt;getFirst();
        }
&lt;p&gt; else if (is_array($collection)) &lt;/p&gt;
{
            return array_shift($collection);
        }

&lt;p&gt;        return false;&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;Hydrator.php - returns a string * @version     $Revision: 3192 $&lt;/p&gt;

&lt;p&gt;    public function hydrateResultSet($stmt, $tableAliases)&lt;/p&gt;
    {
        $driver = $this-&amp;gt;getHydratorDriver($this-&amp;gt;_hydrationMode, $tableAliases);
        $result = $driver-&amp;gt;hydrateResultSet($stmt);

        return $result;
    }</description>
                <environment>Ubuntu Linux Karmic, Apache 2, Symfony 1.4.3</environment>
            <key id="12029">DC-900</key>
            <summary>HYDRATE_SINGLE_SCALAR option always returns false </summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="junaid">Junaid Ebrahim</reporter>
                        <labels>
                    </labels>
                <created>Sat, 23 Oct 2010 17:32:53 +0000</created>
                <updated>Sat, 23 Oct 2010 18:24:25 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-896] MySQL Limit implementation leads to incorrect results if the original where clause contains an &quot;OR&quot; operator</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-896</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;If adding the Where In clause for the subquery &quot;limit&quot; implementation, the original where clause needs to be isolated with parenthesis.  In my sample where clause the first character is in fact an opening parenthesis and the last character is in fact a closing parenthesis, however, there are a bunch of conditions and parenthesis between them as well that may contain &quot;OR&quot; operators.  When this is combined with the Where In clause generated by the Pager tool&apos;s &quot;limit&quot; implementation for MySQL it leads to incorrect results.  &lt;/p&gt;

&lt;p&gt;Here is my &quot;Before&quot; Where condition:&lt;/p&gt;

&lt;p&gt;WHERE c.id  IN (&apos;25&apos;, &apos;31&apos;, &apos;6&apos;, &apos;28&apos;, &apos;30&apos;, &apos;16&apos;, &apos;32&apos;, &apos;26&apos;, &apos;22&apos;, &apos;14&apos;) AND (a2.data_item_id = ? AND a2.value = ?) AND (a3.data_item_id = ? AND a3.value = ?) OR (a4.data_item_id = ? AND a4.value = ?) AND (a5.data_item_id = ? AND a5.value = ?)&lt;/p&gt;

&lt;p&gt;And the &quot;After&quot; Where condition&lt;br/&gt;
WHERE c.id  IN (&apos;25&apos;, &apos;31&apos;, &apos;6&apos;, &apos;28&apos;, &apos;30&apos;, &apos;16&apos;, &apos;32&apos;, &apos;26&apos;, &apos;22&apos;, &apos;14&apos;) AND ((a2.data_item_id = ? AND a2.value = ?) AND (a3.data_item_id = ? AND a3.value = ?) OR (a4.data_item_id = ? AND a4.value = ?) AND (a5.data_item_id = ? AND a5.value = ?))&lt;/p&gt;

&lt;p&gt;Fix:&lt;/p&gt;

&lt;p&gt;Line 1305 in Query.php:&lt;br/&gt;
$where = ($where == &apos;&apos; || (substr($where, 0, 1) === &apos;(&apos; &amp;amp;&amp;amp; substr($where, -1) === &apos;)&apos;))&lt;br/&gt;
        ? $where : &apos;(&apos; . $where . &apos;)&apos;;&lt;/p&gt;

&lt;p&gt;I ended up just adding the following just after the above statement in the code:&lt;br/&gt;
if (!empty($limitSubquerySql) &amp;amp;&amp;amp; !empty($where)) &lt;/p&gt;
        { $where = &apos;(&apos; . $where . &apos;)&apos;; } </description>
                <environment>Doctrine + MySQL</environment>
            <key id="12022">DC-896</key>
            <summary>MySQL Limit implementation leads to incorrect results if the original where clause contains an &quot;OR&quot; operator</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="datacraftpakele">James Pakele</reporter>
                        <labels>
                    </labels>
                <created>Wed, 20 Oct 2010 08:59:51 +0000</created>
                <updated>Wed, 20 Oct 2010 08:59:51 +0000</updated>
                                                                    <component>Query</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-894] Typo in Doctrine_Manager::getConnectionDrivers()</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-894</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Hello.&lt;/p&gt;

&lt;p&gt;getConnectionDrivers is returning member variable &apos;_connectionsDrivers&apos; at line 809.&lt;br/&gt;
It&apos;s probably typo, I think this variable name should be &apos;_connectionDrivers&apos;.&lt;/p&gt;
</description>
                <environment>symfony 1.4 / PHP 5.2.13 / CentOS5.4</environment>
            <key id="12018">DC-894</key>
            <summary>Typo in Doctrine_Manager::getConnectionDrivers()</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="akitaka">Akitaka Kohno</reporter>
                        <labels>
                    </labels>
                <created>Tue, 19 Oct 2010 23:59:44 +0000</created>
                <updated>Tue, 19 Oct 2010 23:59:44 +0000</updated>
                                    <version>1.2.3</version>
                                                <component>Connection</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-891] [PATCH] Relation array as the result of Doctrine_Table::bind()</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-891</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;It would be handy to return a relation array as the result of Doctrine_Table::bind(), because the relation parser&apos;s bind() already returns this value.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12012">DC-891</key>
            <summary>[PATCH] Relation array as the result of Doctrine_Table::bind()</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="romanb">Roman S. Borschel</assignee>
                                <reporter username="rybakit">Eugene Leonovich</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Oct 2010 05:12:51 +0000</created>
                <updated>Mon, 18 Oct 2010 05:13:29 +0000</updated>
                                                                    <component>Relations</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                    <attachment id="10827" name="bind.patch" size="1161" author="rybakit" created="Mon, 18 Oct 2010 05:12:51 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-890] public function detach break the nested set tree [patch attached]</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-890</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;If I detach a node from the tree using &lt;tt&gt;$node-&amp;gt;detach();&lt;/tt&gt; it set the left and right value to zero without shifting, creating a possible tree corruption.&lt;br/&gt;
It still work somehow because inserting a new node will shift the value but keep the hole in the tree.&lt;/p&gt;

&lt;p&gt;I&apos;ve looked to the original commit in Trac (&lt;a href=&quot;http://trac.doctrine-project.org/changeset/4089&quot; class=&quot;external-link&quot;&gt;http://trac.doctrine-project.org/changeset/4089&lt;/a&gt;) and I don&apos;t think the original idea of the commit was to leave a hole.&lt;br/&gt;
I&apos;ve added 3 lines of code (that I copied from the delete function which works properly), the coresponding patch is joigned to the bug ticket&lt;/p&gt;</description>
                <environment>not environment dependant</environment>
            <key id="12008">DC-890</key>
            <summary>public function detach break the nested set tree [patch attached]</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="romanb">Roman S. Borschel</assignee>
                                <reporter username="alex-pex">Alexandre PAIXAO</reporter>
                        <labels>
                    </labels>
                <created>Thu, 14 Oct 2010 12:12:36 +0000</created>
                <updated>Thu, 14 Oct 2010 12:20:06 +0000</updated>
                                                                    <component>Nested Set</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14567" author="alex-pex" created="Thu, 14 Oct 2010 12:18:31 +0000"  >&lt;p&gt;ex:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;root                1       4&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;- node A       2       3&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;after detach :&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;root                1       4&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;- node A         0       0&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;then a new one :&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;root                1       6&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;- node B        4       5&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;- node A         0       0&lt;/tt&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10826" name="NestedSet.patch" size="490" author="alex-pex" created="Thu, 14 Oct 2010 12:12:36 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-883] Help for Test CLI does not list available test groups</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-883</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;The CLI Test Runner is supposed to print a list of available test groups when used with the --help parameter, but this fails as the Doctrine_Test::run() method erroneously expects php sort() to return an array rather than a boolean.&lt;/p&gt;

&lt;p&gt;Fixed by &lt;a href=&quot;http://github.com/acoulton/doctrine1/tree/DC-883&quot; class=&quot;external-link&quot;&gt;http://github.com/acoulton/doctrine1/tree/DC-883&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="11993">DC-883</key>
            <summary>Help for Test CLI does not list available test groups</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="andrewcoulton">Andrew Coulton</reporter>
                        <labels>
                    </labels>
                <created>Sun, 10 Oct 2010 18:44:36 +0000</created>
                <updated>Sun, 10 Oct 2010 18:51:17 +0000</updated>
                                    <version>1.2.3</version>
                                <fixVersion>1.2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-879] MSSQL - missing function date_part() in Expression/Mssql.php [+patch]</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-879</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Missing function date_part() in Expression/Mssql.php. I don&apos;t know why the set of expressions is different for each driver. This makes it hard to develop database independent.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11977">DC-879</key>
            <summary>MSSQL - missing function date_part() in Expression/Mssql.php [+patch]</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="enrico">Enrico Stahn</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Oct 2010 04:34:09 +0000</created>
                <updated>Tue, 5 Oct 2010 04:50:00 +0000</updated>
                                    <version>1.2.2</version>
                <version>1.2.3</version>
                                <fixVersion>1.2.4</fixVersion>
                                <component>Connection</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-872] 1.2 Documentation on Aggregate Functions Error</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-872</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;In the documentation for using aggregate values with Doctrine Query (link below), there is a code snippet that shows how to access the value of the aggregate field, which does not work.&lt;/p&gt;

&lt;p&gt;The code snippet is:&lt;/p&gt;

&lt;p&gt;//firstsnippet after header&lt;br/&gt;
$q = Doctrine_Query::create()&lt;br/&gt;
    -&amp;gt;select(&apos;u.id, COUNT(t.id) AS num_threads&apos;)&lt;br/&gt;
    -&amp;gt;from(&apos;User u, u.Threads t&apos;)&lt;br/&gt;
    -&amp;gt;where(&apos;u.id = ?&apos;, 1)&lt;br/&gt;
    -&amp;gt;groupBy(&apos;u.id&apos;);&lt;/p&gt;

&lt;p&gt;//second snippet after header&lt;br/&gt;
$users = $q-&amp;gt;execute();&lt;/p&gt;

&lt;p&gt;//fourth snippet after header&lt;br/&gt;
echo $users-&amp;gt;num_threads . &apos; threads found&apos;;&lt;/p&gt;

&lt;p&gt;The code from the last snippet for accessing the count value, $users-&amp;gt;num_threads, doesn&apos;t seem to work. What does work for me is:&lt;/p&gt;

&lt;p&gt;//access count value&lt;br/&gt;
echo $users&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt;-&amp;gt;num_threads&lt;/p&gt;

&lt;p&gt;//My exact code is:&lt;br/&gt;
$query = Doctrine_Query::create()&lt;br/&gt;
		 -&amp;gt;select(&apos;COUNT&lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/star_yellow.gif&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; as batchCount&apos;)&lt;br/&gt;
		 -&amp;gt;from(&apos;Batch&apos;);&lt;br/&gt;
$result = $query-&amp;gt;execute();&lt;/p&gt;

&lt;p&gt;echo $result-&amp;gt;batchCount; //10&lt;br/&gt;
echo $result&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt;-&amp;gt;batchCount; //3 (3 is correct, from direct MySQL command line query)&lt;/p&gt;

&lt;p&gt;It&apos;s certainly possible I&apos;m doing something wrong, or that there is a Doctrine_Core attribute I need to set. If there is a Doctrine_Core attribute to set to automatically access aggregate values from the Collection, it would be worth noting at the top of the section. &lt;/p&gt;

&lt;p&gt;Thanks, and thanks for Doctrine (so awesome).&lt;/p&gt;

&lt;p&gt;Link:&lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/projects/orm/1.2/docs/manual/dql-doctrine-query-language/hu#select-queries:aggregate-values&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/projects/orm/1.2/docs/manual/dql-doctrine-query-language/hu#select-queries:aggregate-values&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="11946">DC-872</key>
            <summary>1.2 Documentation on Aggregate Functions Error</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="isac1984">Isaac Foster</reporter>
                        <labels>
                    </labels>
                <created>Tue, 21 Sep 2010 10:55:55 +0000</created>
                <updated>Tue, 21 Sep 2010 10:55:55 +0000</updated>
                                    <version>1.2.3</version>
                                                <component>Documentation</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-868] [Documentation] Column aggregation</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-868</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;The example in the documentation at &lt;a href=&quot;http://www.doctrine-project.org/documentation/manual/1_2/en/inheritance:column-aggregation&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/documentation/manual/1_2/en/inheritance:column-aggregation&lt;/a&gt; suggests that the discriminator (in this case &apos;type&apos;) column does not need to be defined in the parent class &apos;Entity&apos;.&lt;/p&gt;

&lt;p&gt;This did not work for me, I had to declare the discriminator column as shown in the  &apos;Taking advantage of column aggregation inheritance&apos; chapter at &lt;a href=&quot;http://www.doctrine-project.org/projects/orm/1.2/docs/cookbook/taking-advantage-of-column-aggregation-inheritance/en&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/projects/orm/1.2/docs/cookbook/taking-advantage-of-column-aggregation-inheritance/en&lt;/a&gt;. &lt;/p&gt;</description>
                <environment></environment>
            <key id="11928">DC-868</key>
            <summary>[Documentation] Column aggregation</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="metalspawn">Michael Simpson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 Sep 2010 02:39:08 +0000</created>
                <updated>Thu, 16 Sep 2010 02:40:45 +0000</updated>
                                    <version>1.2.3</version>
                                                <component>Documentation</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-864] Generating YAML schema from model should pick up also charset, collate and other options</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-864</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;I did change Doctrine/Export/Schema.php to pick up some options from model, then they get exported into YAML schema by current code.&lt;/p&gt;

&lt;p&gt;Adding the patch. (sorry, can&apos;t run the tests, so I&apos;m not sure whether it does break something, really shouldn&apos;t)&lt;/p&gt;

&lt;p&gt;In my project it works just as expected (did need it for the way I do migrations).&lt;/p&gt;

&lt;p&gt;TODO for Doctrine devs:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;run tests with my patch and let me know if there&apos;s a problem&lt;/li&gt;
	&lt;li&gt;consider other option names, which are worth of export, so far I did need &quot;charset&quot; and &quot;collate&quot;, and I added &quot;queryParts&quot; as well.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I hope my additions make sense and will help you to improve Doctrine project. (and that you will include it, so I don&apos;t have custom modified Doctrine &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></environment>
            <key id="11904">DC-864</key>
            <summary>Generating YAML schema from model should pick up also charset, collate and other options</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="ped">Peter Helcmanovsky</reporter>
                        <labels>
                    </labels>
                <created>Fri, 10 Sep 2010 06:15:08 +0000</created>
                <updated>Mon, 10 Jan 2011 09:51:03 +0000</updated>
                                                                    <component>Import/Export</component>
                <component>Schema Files</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15118" author="ped" created="Mon, 10 Jan 2011 09:51:03 +0000"  >&lt;p&gt;By hunting down an eluding bug I figured out (i.e. by hard way) that the indexes are dropped as well during YAML generation.&lt;/p&gt;

&lt;p&gt;I will do another pull request on github including another 3 lines to fix that...&lt;/p&gt;

&lt;p&gt;I see this issue is ignored anyway by core devs.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10784" name="Export_Schema.patch" size="863" author="ped" created="Fri, 10 Sep 2010 06:15:08 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-861] Make sure doctrine uses the right connection when creating a query from a table object</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-861</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Line# 1036&lt;br/&gt;
When using Table::createQuery, null is specified as the connection when calling Doctrine_Query::create() which results in using the default connection while the &quot;correct&quot; connection can be know ($this-&amp;gt;getConnection())&lt;/p&gt;

&lt;p&gt;here is the fix:&lt;/p&gt;

&lt;p&gt;&amp;#8212; a/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Table.php&lt;br/&gt;
+++ b/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Table.php&lt;br/&gt;
@@ -1033,7 +1033,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable&lt;/p&gt;

&lt;p&gt;         $class = $this-&amp;gt;getAttribute(Doctrine_Core::ATTR_QUERY_CLASS);&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;return Doctrine_Query::create(null, $class)&lt;br/&gt;
+        return Doctrine_Query::create($this-&amp;gt;getConnection(), $class)&lt;br/&gt;
             &lt;del&gt;&amp;gt;from($this&lt;/del&gt;&amp;gt;getComponentName() . $alias);&lt;br/&gt;
     }&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment>All</environment>
            <key id="11895">DC-861</key>
            <summary>Make sure doctrine uses the right connection when creating a query from a table object</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="nanux">Emmanuel Delescolle</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 Sep 2010 03:46:07 +0000</created>
                <updated>Wed, 8 Sep 2010 03:46:07 +0000</updated>
                                    <version>1.2.3</version>
                                                <component>Connection</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-855] Notify via Exception when a feature is specifically not supported for compatability</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-855</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;For situations like with &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DC-646&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DC-646&lt;/a&gt; would it be possible to look at throwing an exception with an explanation of why it does not work, rather than simply let the query fail because of intentionally incorrect query generation?&lt;/p&gt;

&lt;p&gt;Granted, the fix is relatively simple (just select and delete the results, instead), but if I don&apos;t know why the wrong query is being made, I don&apos;t know to change my approach rather than simply assume I&apos;m doing something wrong.&lt;/p&gt;</description>
                <environment>N/A</environment>
            <key id="11873">DC-855</key>
            <summary>Notify via Exception when a feature is specifically not supported for compatability</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="jmather">Jacob Mather</reporter>
                        <labels>
                    </labels>
                <created>Thu, 2 Sep 2010 10:30:13 +0000</created>
                <updated>Thu, 2 Sep 2010 10:30:13 +0000</updated>
                                    <version>1.2.2</version>
                                                <component>Query</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-852] CLONE -Fix returned type value : SQL integers to PHP integers when getting a value from the database.</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-852</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Hi Jon,&lt;/p&gt;

&lt;p&gt;I have a request for you to improve Doctrine. When declaring a column as an integer, it seems that Doctrine returns a string when getting the value of that column. For example, if I have a &quot;status&quot; column, which can take 0, 1 or 2 as its value, Doctrine will return these values as string, which is not really logical and returning the good PHP type is the goal of an ORM. I&apos;m fond of the triple equal symbol to test a value and I did not understand why this did not work at start :&lt;/p&gt;

&lt;p&gt;// in my myModel class&lt;br/&gt;
class myModel extends Doctrine_Record&lt;br/&gt;
{&lt;br/&gt;
  const STATUS_VALIDATED = 1;&lt;/p&gt;

&lt;p&gt;  public function isValidated()&lt;/p&gt;
  {
    return self::STATUS_VALIDATED === $this-&amp;gt;getStatus();
  }
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;That&apos;s why getStatus() gives me a string instead of an integer, whereas the column is declared as an integer in my schema. I&apos;m forced to cast myself the returned value of getStatus() in my model.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11863">DC-852</key>
            <summary>CLONE -Fix returned type value : SQL integers to PHP integers when getting a value from the database.</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="enrico">Enrico Stahn</reporter>
                        <labels>
                    </labels>
                <created>Wed, 1 Sep 2010 08:19:12 +0000</created>
                <updated>Thu, 2 Sep 2010 08:11:23 +0000</updated>
                                    <version>1.2.3</version>
                                <fixVersion>1.2.4</fixVersion>
                                <component>Attributes</component>
                <component>Data Fixtures</component>
                <component>Native SQL</component>
                <component>Query</component>
                <component>Record</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14214" author="enrico" created="Wed, 1 Sep 2010 11:38:05 +0000"  >&lt;p&gt;Proposal for a solution: &lt;a href=&quot;http://github.com/estahn/doctrine1/compare/master...DC-852&quot; class=&quot;external-link&quot;&gt;http://github.com/estahn/doctrine1/compare/master...DC-852&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="14225" author="jwage" created="Wed, 1 Sep 2010 14:46:04 +0000"  >&lt;p&gt;So if you enable this attribute you live with the fact that casting a string to an integer that is longer than php max integer will give weird results?&lt;/p&gt;</comment>
                    <comment id="14235" author="enrico" created="Thu, 2 Sep 2010 08:11:23 +0000"  >&lt;p&gt;i&apos;m far from happy with this solution. if an integer that is greater than php max int gets casted it will be casted into a value of type double. if you enable that attribute only values that could successfully casted into an integer will be casted otherwise an exception will be thrown.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-846] Provide documentation for connection options</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-846</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Provide additional information on connection options.&lt;/p&gt;

&lt;p&gt;$conn = Doctrine_Manager::connection(&apos;mysql://username:password@localhost/test&apos;, &apos;connection 1&apos;); &lt;/p&gt;

&lt;p&gt;just skims the surface. At least link to PDO docs. Also, what is the second parameter? I can look in API docs, but it would be helpful to have in the reference guide. &lt;/p&gt;

&lt;p&gt;Are there any other ways to make a connection, such as through an array of parameters?&lt;/p&gt;</description>
                <environment>All</environment>
            <key id="11846">DC-846</key>
            <summary>Provide documentation for connection options</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="ritty">Ritty</reporter>
                        <labels>
                    </labels>
                <created>Sun, 29 Aug 2010 15:26:57 +0000</created>
                <updated>Sun, 29 Aug 2010 15:26:57 +0000</updated>
                                    <version>1.2.3</version>
                                                <component>Documentation</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-843] MSSQL - Equal-to Operator doesn&apos;t work with columns of type text in where condition [+patch]</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-843</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Example:&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;Doctrine::getTable(&apos;Ticket_DCXXX2_Model&apos;)-&amp;gt;findByUsernameAndFoo(&apos;foo&apos;, &apos;bar&apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;tt&gt;foo&lt;/tt&gt; is of type &quot;text&quot;. Doctrine generates &quot;&lt;tt&gt;where .... foo = &apos;bar&apos;&lt;/tt&gt;&quot;, but this will throw an mssql exception because you cant use the equal to operator in mssql for text and varchar types. Doctrine should consider this database related behavoir, shouldn&apos;t it?&lt;/p&gt;</description>
                <environment></environment>
            <key id="11831">DC-843</key>
            <summary>MSSQL - Equal-to Operator doesn&apos;t work with columns of type text in where condition [+patch]</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="enrico">Enrico Stahn</reporter>
                        <labels>
                    </labels>
                <created>Thu, 26 Aug 2010 11:16:51 +0000</created>
                <updated>Thu, 2 Sep 2010 08:21:23 +0000</updated>
                                    <version>1.2.2</version>
                <version>1.2.3</version>
                                <fixVersion>1.2.4</fixVersion>
                                <component>Connection</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14091" author="enrico" created="Thu, 26 Aug 2010 11:20:59 +0000"  >&lt;p&gt;TestCase added &lt;a href=&quot;http://github.com/estahn/doctrine1/compare/master...DC-843&quot; class=&quot;external-link&quot;&gt;http://github.com/estahn/doctrine1/compare/master...DC-843&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="14114" author="enrico" created="Fri, 27 Aug 2010 11:23:57 +0000"  >&lt;p&gt;Patch added to github (see above)&lt;/p&gt;

&lt;p&gt;commit msg: &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DC-843&quot; title=&quot;MSSQL - Equal-to Operator doesn&amp;#39;t work with columns of type text in where condition [+patch]&quot;&gt;DC-843&lt;/a&gt; fix (TestCase need fix for &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DC-841&quot; title=&quot;Doctrine_Connection_Mssql::replaceBoundParamsWithInlineValuesInQuery regex failing to replace all &amp;#39;?&amp;#39; instances [patch+]&quot;&gt;DC-841&lt;/a&gt; to run successfully)&lt;/p&gt;</comment>
                    <comment id="14237" author="enrico" created="Thu, 2 Sep 2010 08:21:23 +0000"  >&lt;p&gt;I made a mistake with github, the updated branch can be found at&lt;br/&gt;
&lt;a href=&quot;http://github.com/estahn/doctrine1/tree/DC-843-2&quot; class=&quot;external-link&quot;&gt;http://github.com/estahn/doctrine1/tree/DC-843-2&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-811] calculateQueryCacheHash causes a fatal error when used in combination with output buffering</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-811</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;When using output buffering in combination with a doctrine caching driver. var_export causes a fatal error as described here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://marc.info/?l=phpdoc&amp;amp;m=114122422804066&quot; class=&quot;external-link&quot;&gt;http://marc.info/?l=phpdoc&amp;amp;m=114122422804066&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://php.net/manual/en/function.var-export.php&quot; class=&quot;external-link&quot;&gt;http://php.net/manual/en/function.var-export.php&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is the proposed patch.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11732">DC-811</key>
            <summary>calculateQueryCacheHash causes a fatal error when used in combination with output buffering</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="carlalexander">Carl Alexander</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Aug 2010 14:44:59 +0000</created>
                <updated>Tue, 24 Aug 2010 12:49:21 +0000</updated>
                                    <version>1.2.2</version>
                                                <component>Query</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14056" author="jwage" created="Tue, 24 Aug 2010 12:49:21 +0000"  >&lt;p&gt;This seems to break the test suite in several places so it cannot be applied. If you can provide a patch that passes the test suite we can discuss applying the patch.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10723" name="query_abstract.patch" size="540" author="carlalexander" created="Fri, 6 Aug 2010 14:44:59 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-808] Doctrine_Connection_Statement-&gt;execute() Do not pass failing query to Doctrine_Connection-&gt;rethrowException()</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-808</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;When &lt;em&gt;Doctrine_Connection_Statement-&amp;gt;execute()&lt;/em&gt; fail on a query, Exception is rethrown by &lt;em&gt;Doctrine_Connection&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;But the failing query is not passed to &lt;em&gt;rethrowException()&lt;/em&gt; as third parameter, which make debug very difficult.&lt;/p&gt;

&lt;p&gt;See attached patch file to correct this.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11725">DC-808</key>
            <summary>Doctrine_Connection_Statement-&gt;execute() Do not pass failing query to Doctrine_Connection-&gt;rethrowException()</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="mars105">Alexandre Ravey</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Aug 2010 05:22:47 +0000</created>
                <updated>Thu, 5 Aug 2010 05:22:47 +0000</updated>
                                    <version>1.2.2</version>
                                                <component>Connection</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                    <attachment id="10720" name="Doctrine_Connection_Statement.patch" size="433" author="mars105" created="Thu, 5 Aug 2010 05:22:47 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-805] Test fails randomly (race condition?)</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-805</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;During one of my test builds, one of the test cases failed, probably because of a race condition:&lt;/p&gt;

&lt;p&gt;Doctrine_Ticket_1441_TestCase : method testTest failed on line 60 &lt;br/&gt;
 Value1: array (&lt;br/&gt;
  0 =&amp;gt; &apos;test&apos;,&lt;br/&gt;
  1 =&amp;gt; &apos;2010-07-10 02:21:34&apos;,&lt;br/&gt;
  2 =&amp;gt; &apos;jwage&apos;,&lt;br/&gt;
) &lt;br/&gt;
 != &lt;br/&gt;
 Value2: array (&lt;br/&gt;
  0 =&amp;gt; &apos;test&apos;,&lt;br/&gt;
  1 =&amp;gt; &apos;2010-07-10 02:21:35&apos;,&lt;br/&gt;
  2 =&amp;gt; &apos;jwage&apos;,&lt;br/&gt;
) &lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Federico&lt;/p&gt;</description>
                <environment>Debian Lenny 5.0</environment>
            <key id="11700">DC-805</key>
            <summary>Test fails randomly (race condition?)</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="fgimenez">Federico Gimenez Nieto</reporter>
                        <labels>
                    </labels>
                <created>Sat, 31 Jul 2010 06:24:01 +0000</created>
                <updated>Sat, 31 Jul 2010 06:24:01 +0000</updated>
                                    <version>1.2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-803] Syntax error in MySQL migration to drop constraint (patch supplied)</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-803</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;I have a migration that adds constraints correctly. When migrating down, however, I get a syntax error&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;ErrorMessage&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;  Error #1 - SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; the right syntax to use near &apos;CONSTRAINT unique_username_idx&apos; at line 1. Failing Query: &lt;span class=&quot;code-quote&quot;&gt;&quot;ALTER TABLE conUser DROP CONSTRAINT unique_username_idx&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here is the down migration:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;DownMigration&lt;/b&gt;&lt;/div&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 down() {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;dropConstraint(&apos;conUser&apos;, &apos;unique_username_idx&apos;);
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The SQL generated is &quot;ALTER TABLE conUser &lt;b&gt;DROP CONSTRAINT&lt;/b&gt; unique_username_idx&quot;. This post (&lt;a href=&quot;http://forums.mysql.com/read.php?98,70887,70974#msg-70974&quot; class=&quot;external-link&quot;&gt;http://forums.mysql.com/read.php?98,70887,70974#msg-70974&lt;/a&gt;) suggests that in MySQL the syntax should be &quot;ALTER TABLE conUser &lt;b&gt;DROP INDEX&lt;/b&gt; unique_username_idx&quot; as constraints are basically indexes in MySQL (unlike MSSQL and Oracle). Doctrine&apos;s lib/Doctrine/Export/MySql.php appears to have a syntax error in the dropConstraint method. I attach a patch for this, but the only change is replacing &quot;$name = &apos;CONSTRAINT &apos;&quot; with &quot;$name = &apos;INDEX &apos;&quot; in dropConstraint. The migration then runs as I would expect.&lt;/p&gt;

&lt;p&gt;Sorry if this has been fixed elsewhere, I did a search but couldn&apos;t find a similar ticket.&lt;/p&gt;</description>
                <environment>Debian, PHP 5.3.2, MySQL</environment>
            <key id="11694">DC-803</key>
            <summary>Syntax error in MySQL migration to drop constraint (patch supplied)</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="boxgav">Gavin Davies</reporter>
                        <labels>
                    </labels>
                <created>Thu, 29 Jul 2010 11:56:23 +0000</created>
                <updated>Thu, 29 Jul 2010 11:58:16 +0000</updated>
                                    <version>1.2.2</version>
                                <fixVersion>1.2.2</fixVersion>
                                <component>Migrations</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="13729" author="boxgav" created="Thu, 29 Jul 2010 11:58:16 +0000"  >&lt;p&gt;fixing syntax&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10713" name="SyntaxFixForMySQLDropConstraintInExport.patch" size="656" author="boxgav" created="Thu, 29 Jul 2010 11:56:23 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-796] Correct way to count all files from a table ?</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-796</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;If I execute this to get the amount of records in a table I get the correct result, but it takes too long and consumes a lot of resources as if I get all the fields from table:&lt;/p&gt;

&lt;p&gt;Doctrine::getTable(&apos;Recurso&apos;)&lt;del&gt;&amp;gt;findAll()&lt;/del&gt;&amp;gt;count(); &lt;/p&gt;

&lt;p&gt;Am I doing it wrong?, The only other option I&apos;ve found is to use DSQL and execute a query like &quot;SELECT count&lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/star_yellow.gif&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; from recurso&quot;.&lt;/p&gt;

&lt;p&gt;Thank you in advance.&lt;/p&gt;

&lt;p&gt;Pablo.&lt;/p&gt;</description>
                <environment>Debian Lenny / MySQL 5.1</environment>
            <key id="11675">DC-796</key>
            <summary>Correct way to count all files from a table ?</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="pgmateos">Pablo Mateos</reporter>
                        <labels>
                    </labels>
                <created>Thu, 22 Jul 2010 11:22:28 +0000</created>
                <updated>Thu, 22 Jul 2010 11:57:36 +0000</updated>
                                    <version>1.2.2</version>
                                                <component>Query</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-781] Column order in generated SQL is based on relationships, instead of SELECT clause</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-781</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;When executing below query as follows:&lt;br/&gt;
        $q = Doctrine_Query::create()&lt;br/&gt;
                -&amp;gt;select(&apos;bc.id, bbl.printed_name, bbl.rate, bc.name, bc.is_rate_variable&apos;)&lt;br/&gt;
                -&amp;gt;from(&apos;BillBatchLine bbl, bbl.Bill_Charge bc&apos;)&lt;br/&gt;
                -&amp;gt;where(&apos;bbl.bill_batch_id = ?&apos;, $bill_batch_id);&lt;br/&gt;
        return $q-&amp;gt;execute(array(), Doctrine::HYDRATE_NONE);&lt;/p&gt;

&lt;p&gt;SQL generated is:&lt;br/&gt;
SELECT b.printed_name AS b_&lt;em&gt;printed_name, b.rate AS b&lt;/em&gt;&lt;em&gt;rate, b2.id AS b2&lt;/em&gt;&lt;em&gt;id, b2.name AS b2&lt;/em&gt;&lt;em&gt;name, b2.is_rate_variable AS b2&lt;/em&gt;_is_rate_variable FROM Bill_Batch_Lines b LEFT JOIN bill_charges b2 ON b.bill_charge_id = b2.id AND (b2.deleted_at IS NULL) WHERE (b.bill_batch_id = &apos;2&apos; AND b.society_id = &apos;1&apos; AND b2.society_id = &apos;1&apos; AND (b.deleted_at IS NULL))&lt;/p&gt;

&lt;p&gt;Basically, columns are ordered based on relationships and not as defined in the SELECT clause&lt;/p&gt;</description>
                <environment>Windows / PHP 5.2.4 / MySQL 5.1.41 / Symfony 1.4.0</environment>
            <key id="11603">DC-781</key>
            <summary>Column order in generated SQL is based on relationships, instead of SELECT clause</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="romanb">Roman S. Borschel</assignee>
                                <reporter username="prasadgupte">Prasad Gupte</reporter>
                        <labels>
                    </labels>
                <created>Sat, 10 Jul 2010 05:14:28 +0000</created>
                <updated>Sat, 10 Jul 2010 05:14:28 +0000</updated>
                                    <version>1.2.0</version>
                                                <component>Native SQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-780] Foreign key creation fails with MySQL 5.0.44</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-780</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;When executing symfony doctrine:build --all --and-load  on a machine using Mysql 5.0.44 I get the following error:&lt;/p&gt;

&lt;p&gt;  SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &apos;dimension(id)&apos; at line 1. Failing Query: &quot;ALTER TABLE kpi_dimension ADD CONSTRAINT kpi_dimension_dimension_id_dimension_id FOREIGN KEY (dimension_id) REFERENCES dimension(id)&quot;. &lt;/p&gt;

&lt;p&gt;The problem can be fixed by adding a space between the table name and the column name that is referenced. So instead of&lt;br/&gt;
&lt;tt&gt;REFERENCES dimension(id)&lt;/tt&gt;&lt;br/&gt;
it should be&lt;br/&gt;
&lt;tt&gt;REFERENCES dimension (id)&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Since it works fine on MySQL 5.1.37, I normally would file this under Mysql bug. But as the &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.1/en/innodb-foreign-key-constraints.html&quot; class=&quot;external-link&quot;&gt;syntax for a foreign key constraint in MySQL&lt;/a&gt; mentions this space it should be ok to simply add the space to the script creating the sql for the foreign key. I have not tried any other DBMS though.&lt;/p&gt;

&lt;p&gt;The patch for the file Export.php is attached.&lt;/p&gt;

&lt;p&gt;Best regards&lt;/p&gt;

&lt;p&gt;Claudia&lt;/p&gt;</description>
                <environment>gentoo, MySQL 5.0.44-log, Doctrine 1.2, symfony 1.4.4</environment>
            <key id="11601">DC-780</key>
            <summary>Foreign key creation fails with MySQL 5.0.44</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="claudia_k">Claudia Kosny</reporter>
                        <labels>
                    </labels>
                <created>Fri, 9 Jul 2010 04:23:24 +0000</created>
                <updated>Fri, 9 Jul 2010 04:23:24 +0000</updated>
                                    <version>1.2.0</version>
                                                <component>Import/Export</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                    <attachment id="10695" name="Doctrine-Export.patch" size="611" author="claudia_k" created="Fri, 9 Jul 2010 04:23:24 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-776] $record-&gt;link(&apos;Alias&apos;, $id) throws an exception because of getIdentifier returns array, not string</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-776</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;I want to bookmark ads on my site. So i have Ads table, users table (sfDoctrineGuard) and a refclass Bookmarks. I&apos;ve created an ajax link to an action, where i retrieved $ad object, $user_id and &lt;br/&gt;
$ad-&amp;gt;link(&apos;Bookmarks&apos;, $user_id, true);&lt;br/&gt;
So I expected a record in a database to be created. &lt;/p&gt;

&lt;p&gt;Bookmarks:&lt;br/&gt;
...&lt;br/&gt;
  columns:&lt;br/&gt;
    user_id: &lt;/p&gt;
{ type: integer(4), primary: true }
&lt;p&gt;    ad_id:  &lt;/p&gt;
{ type: integer(4), primary: true }
&lt;p&gt;  relations:&lt;br/&gt;
    sfGuardUser: &lt;/p&gt;
{ onDelete: CASCADE, local: user_id, foreign: id }
&lt;p&gt;    Ads: &lt;/p&gt;
{ onDelete: CASCADE, local: ad_id,  foreign: ad_id }

&lt;p&gt;As my Bookmarks table has 2 primary keys in the link method &lt;/p&gt;

&lt;p&gt;            if (count($ids) &amp;gt; 0) &lt;/p&gt;
{
                $q-&amp;gt;whereIn($rel-&amp;gt;getTable()-&amp;gt;getIdentifier(), array_values($this-&amp;gt;identifier()));
            }

&lt;p&gt;$rel-&amp;gt;getTable()-&amp;gt;getIdentifier() returned me an array(&apos;user_id&apos;, &apos;ad_id&apos;) instead of a string. So the query which was generated looked like&lt;br/&gt;
UPDATE bookmarks SET ad_id = ? WHERE (Array IN &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/help_16.gif&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;)&lt;br/&gt;
And Array is not the name of a column.&lt;/p&gt;

&lt;p&gt;My schema:&lt;br/&gt;
&lt;a href=&quot;http://pastie.org/private/2lr9gy1h3mtdwdsiwrwylq&quot; class=&quot;external-link&quot;&gt;http://pastie.org/private/2lr9gy1h3mtdwdsiwrwylq&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I&apos;ve solved an issue by creating a new Bookmark instance and saving it, but i presume that issue might distract someone.&lt;/p&gt;</description>
                <environment>Symfony 1.4.6-DEV</environment>
            <key id="11588">DC-776</key>
            <summary>$record-&gt;link(&apos;Alias&apos;, $id) throws an exception because of getIdentifier returns array, not string</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="charnad">Viktoras Bezaras</reporter>
                        <labels>
                    </labels>
                <created>Mon, 5 Jul 2010 18:01:58 +0000</created>
                <updated>Mon, 5 Jul 2010 18:05:14 +0000</updated>
                                    <version>1.2.2</version>
                                                <component>Record</component>
                <component>Relations</component>
                <component>Schema Files</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
            <subtask id="11587">DC-775</subtask>
        </subtasks>
        </item>

<item>
            <title>[DC-772] Different test results in different debian boxes</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-772</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I have two different debian boxes, in one of them all test pass but in the other (a very basic system with just the essential packages installed) i get:&lt;/p&gt;

&lt;p&gt;Doctrine_Search_TestCase........................................................failed&lt;/p&gt;

&lt;p&gt;Unexpected Doctrine_Record_UnknownPropertyException thrown in &lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine_Search_TestCase&amp;#93;&lt;/span&gt; with message &lt;span class=&quot;error&quot;&gt;&amp;#91;Unknown record property / related component &amp;quot;SearchTestIndex&amp;quot; on &amp;quot;SearchTest&amp;quot;&amp;#93;&lt;/span&gt; in /home/fgimenez/doctrine/Doctrine-1.2.2/lib/Doctrine/Record/Filter/Standard.php on line 55&lt;/p&gt;

&lt;p&gt;#0 /home/fgimenez/doctrine/Doctrine-1.2.2/lib/Doctrine/Record.php(1382): Doctrine_Record_Filter_Standard-&amp;gt;filterGet(Object(SearchTest), &apos;SearchTestIndex&apos;)&lt;br/&gt;
#1 /home/fgimenez/doctrine/Doctrine-1.2.2/lib/Doctrine/Record.php(1337): Doctrine_Record-&amp;gt;_get(&apos;SearchTestIndex&apos;, true)&lt;br/&gt;
#2 /home/fgimenez/doctrine/Doctrine-1.2.2/lib/Doctrine/Access.php(72): Doctrine_Record-&amp;gt;get(&apos;SearchTestIndex&apos;)&lt;br/&gt;
#3 /home/fgimenez/doctrine/Doctrine-1.2.2/tests/SearchTestCase.php(48): Doctrine_Access-&amp;gt;__get(&apos;SearchTestIndex&apos;)&lt;br/&gt;
#4 /home/fgimenez/doctrine/Doctrine-1.2.2/tests/DoctrineTest/UnitTestCase.php(158): Doctrine_Search_TestCase-&amp;gt;testBuildingOfSearchRecordDefinition()&lt;br/&gt;
#5 /home/fgimenez/doctrine/Doctrine-1.2.2/tests/DoctrineTest/GroupTest.php(75): UnitTestCase-&amp;gt;run()&lt;br/&gt;
#6 /home/fgimenez/doctrine/Doctrine-1.2.2/tests/DoctrineTest.php(183): GroupTest-&amp;gt;run(Object(DoctrineTest_Reporter_Cli), &apos;&apos;)&lt;br/&gt;
#7 /home/fgimenez/doctrine/Doctrine-1.2.2/tests/run.php(320): DoctrineTest-&amp;gt;run()&lt;br/&gt;
#8 &lt;/p&gt;
{main}

&lt;p&gt;I&apos;ve been trying to determine which is the package that is installed in one box but not in the other and that make the Doctrine_Search_TestCase test pass, no luck so far (same php and sqlite configuration in both environments).&lt;/p&gt;

&lt;p&gt;Any hint on this is highly appreciated, cheers &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;

&lt;p&gt;Federico&lt;/p&gt;</description>
                <environment>Debian Lenny 5.0</environment>
            <key id="11575">DC-772</key>
            <summary>Different test results in different debian boxes</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="fgimenez">Federico Gimenez Nieto</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 Jun 2010 12:31:24 +0000</created>
                <updated>Sun, 1 Aug 2010 06:34:11 +0000</updated>
                                    <version>1.2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="13751" author="fgimenez" created="Sun, 1 Aug 2010 03:29:09 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;In other words, what are the minimum requirements to run doctrine successfully, including the tests? After uploading the debian package of doctrine to the archive there have been some errors regarding the tests on a clean environment with just the packages php5-cli and php5-sqlite (and its dependencies) installed, see &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;. This used to work on other boxes.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; &lt;a href=&quot;http://people.debian.org/~lucas/logs/2010/07/31/doctrine_1.2.2-1_lsid64.buildlog&quot; class=&quot;external-link&quot;&gt;http://people.debian.org/~lucas/logs/2010/07/31/doctrine_1.2.2-1_lsid64.buildlog&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Federico&lt;/p&gt;
</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-771] fetchOne return boolean</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-771</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Doctrine_Query::fetchOne could return false..&lt;/p&gt;

&lt;p&gt;It a &quot;get&quot; function, so the function should return &quot;null&quot; or an &quot;object&quot;, but a boolean isn&apos;t a good value..&lt;/p&gt;</description>
                <environment></environment>
            <key id="11567">DC-771</key>
            <summary>fetchOne return boolean</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="armetiz">Thomas Tourlourat - Armetiz</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Jun 2010 07:10:00 +0000</created>
                <updated>Tue, 29 Jun 2010 07:10:00 +0000</updated>
                                    <version>1.2.2</version>
                                                <component>Query</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-767] Doctrine_Migration_Builder::generateMigrationClass() improperly loads migration class</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-767</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;in function: Doctrine_Migration_Builder::generateMigrationClass() the generated migration class is included (require_once) after creation.  A loadMigrationClass call is made following &lt;span class=&quot;error&quot;&gt;&amp;#91;line 513&amp;#93;&lt;/span&gt; as:&lt;/p&gt;

&lt;p&gt;$this-&amp;gt;migration-&amp;gt;loadMigrationClass($className);&lt;/p&gt;

&lt;p&gt;I propose this should change to include the optional &quot;$path&quot; argument to Doctrine_Migration::loadMigrationClass() as:&lt;/p&gt;

&lt;p&gt;$this-&amp;gt;migration-&amp;gt;loadMigrationClass($className, $path);&lt;/p&gt;

&lt;p&gt;Since the $path variable is available for the loadMigrationClass it should be included.  More importantly NOT including $path breaks the certains behaviors.  This occurs as a side effect in symfony for instance when creating a new task that chains:&lt;/p&gt;

&lt;p&gt;doctrine:generate-migrations-diff&lt;br/&gt;
doctrine:migrate&lt;/p&gt;

&lt;p&gt;The reason for the problem is because the generate-migrations-diff properly creates the version class and file and then has a require_once that pulls the class into scope.  doctrine:migrate then runs Doctrine_Migration::loadMigrationClassesFromDirectory() to find all the migration classes.  The task does NOT see the newly created migration class because it is not associated with the directory dirname($path) pointed out above.  The function thoroughly scans the migration class directory  with require_once and array_diff&apos;s to find new classes.  But the new migrations class is already within declaration scope so is missed.  Thus the doctrine:migrate task always migrates to the version BEFORE the executed doctrine:generate-migration-diff.&lt;/p&gt;






</description>
                <environment>N/A</environment>
            <key id="11554">DC-767</key>
            <summary>Doctrine_Migration_Builder::generateMigrationClass() improperly loads migration class</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="bfranzke">Brandon Franzke</reporter>
                        <labels>
                    </labels>
                <created>Fri, 25 Jun 2010 11:03:13 +0000</created>
                <updated>Fri, 25 Jun 2010 11:03:13 +0000</updated>
                                    <version>1.2.2</version>
                                                <component>Migrations</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-763] Timestamp validation does not fail, when missing time in value</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-763</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Doctrine_Validator_Timestamp does not validate correctly, when missing time information in value!&lt;/p&gt;

&lt;p&gt;2009-01-20 -&amp;gt; validator returns true, should be false because of the missing time&lt;/p&gt;</description>
                <environment>php 5.2.6 + mysql 5.0</environment>
            <key id="11547">DC-763</key>
            <summary>Timestamp validation does not fail, when missing time in value</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="sigma">Steffen Zeidler</reporter>
                        <labels>
                    </labels>
                <created>Thu, 24 Jun 2010 10:11:14 +0000</created>
                <updated>Tue, 31 Aug 2010 15:37:05 +0000</updated>
                                    <version>1.2.1</version>
                                                <component>Validators</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="14201" author="sigma" created="Tue, 31 Aug 2010 15:37:05 +0000"  >&lt;p&gt;patch &amp;amp; test&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10760" name="DC763TestCase.php" size="1657" author="sigma" created="Tue, 31 Aug 2010 15:37:05 +0000" />
                    <attachment id="10761" name="Timestamp.patch" size="479" author="sigma" created="Tue, 31 Aug 2010 15:37:05 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-752] Data type &quot;decimal&quot; can be unsigned in MySQL 5.0</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-752</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;I have found in official docs of MySQL v5.0: &lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html&quot; class=&quot;external-link&quot;&gt;http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Decimals can be unsigned: DECIMAL[(M&lt;span class=&quot;error&quot;&gt;&amp;#91;,D&amp;#93;&lt;/span&gt;)] &lt;span class=&quot;error&quot;&gt;&amp;#91;UNSIGNED&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;ZEROFILL&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Here above is my &quot;&lt;tt&gt;schema.yml&lt;/tt&gt;&quot; file:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;background-color: #EEEEEE;border-color: #333333;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: #333333;background-color: #EFEFEF;&quot;&gt;&lt;b&gt;schema.yml&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot; style=&quot;background-color: #EEEEEE;&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt; 
Project:
  columns:
    id:
      type: integer(4)
      unsigned: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
      primary: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
      autoincrement: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
    salary_range_from:
      type: decimal(12)
      scale: 2
      unsigned: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;After i run:&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;./symfony doctrine:build --all&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;my &quot;&lt;tt&gt;schema.sql&lt;/tt&gt;&quot; is:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;background-color: #EEEEEE;border-color: #333333;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: #333333;background-color: #EFEFEF;&quot;&gt;&lt;b&gt;schema.sql&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot; style=&quot;background-color: #EEEEEE;&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt; 
CREATE TABLE `project` (
  `id` INT AUTO_INCREMENT, 
  `salary_range_from` DECIMAL(12, 2), 
  INDEX `company_id_idx` (`company_id`), PRIMARY KEY(`id`)
) DEFAULT CHARACTER SET utf8 ENGINE = INNODB;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>OS: FreeBSD 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 amd64&lt;br/&gt;
PHP: 5.2.13 (cli) (built: May  6 2010 01:51:58), Zend Engine v2.2.0, with Xdebug v2.0.5&lt;br/&gt;
Symfony: 1.4.6-DEV (/web/vendor/symfony/1.4-svn/lib)&lt;br/&gt;
MySQL: Ver 14.14 Distrib 5.1.46, for portbld-freebsd8.0 (amd64) using  5.2</environment>
            <key id="11522">DC-752</key>
            <summary>Data type &quot;decimal&quot; can be unsigned in MySQL 5.0</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="romanb">Roman S. Borschel</assignee>
                                <reporter username="fruit">Ilya Sabelnikov</reporter>
                        <labels>
                    </labels>
                <created>Fri, 18 Jun 2010 10:38:31 +0000</created>
                <updated>Fri, 18 Jun 2010 10:38:31 +0000</updated>
                                                                    <component>Native SQL</component>
                <component>Schema Files</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-749] Doctrine_Record#getMutators() triggers PHP notice</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-749</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;When calling &lt;tt&gt;getMutators()&lt;/tt&gt; on an instance of Doctrine_Record (eg. &lt;tt&gt;$user = new User();&lt;/tt&gt;), if it hasn&apos;t any defined custom mutator yet, we get a&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;Notice: Undefined index: User in /[...]/Doctrine/Record.php on line 1312
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;whereas there&apos;s no error with &lt;tt&gt;getAccessors()&lt;/tt&gt; (I suppose it was fixed for the second one but not copied to the first one).&lt;/p&gt;

&lt;p&gt;Patch is &lt;b&gt;really&lt;/b&gt; simple! please see attachment &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/wink.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;

&lt;p&gt;Regards&lt;/p&gt;</description>
                <environment>Doctrine SVN 1.2 r7676</environment>
            <key id="11515">DC-749</key>
            <summary>Doctrine_Record#getMutators() triggers PHP notice</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="gx">Guilliam X</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 Jun 2010 10:30:57 +0000</created>
                <updated>Thu, 17 Jun 2010 10:30:57 +0000</updated>
                                    <version>1.2.2</version>
                                                <component>Record</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                    <attachment id="10667" name="DC-749.patch" size="499" author="gx" created="Thu, 17 Jun 2010 10:30:57 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-746] Sluggable canUpdate overridden after subsequent updates</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-746</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;When allowing the user to manually change a slug using &apos;canUpdate&apos; the slug  reverts back to it&apos;s default generated value upon subsequent saves. Pre-Update on the Sluggable Listener Template seems to incorrectly decide to regenerate the default value.&lt;/p&gt;

&lt;p&gt;Example:&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;this&lt;/span&gt;-&amp;gt;actAs(&apos;Sluggable&apos;, array(&apos;unique&apos;=&amp;gt;&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;, &apos;fields&apos;=&amp;gt;array(&apos;title&apos;), &apos;canUpdate&apos;=&amp;gt;&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;$record-&amp;gt;description = &lt;span class=&quot;code-quote&quot;&gt;&quot;An example Item&quot;&lt;/span&gt;;
$record-&amp;gt;title = &lt;span class=&quot;code-quote&quot;&gt;&quot;Example Title&quot;&lt;/span&gt;;
$record-&amp;gt;save();

echo $record-&amp;gt;slug; &lt;span class=&quot;code-comment&quot;&gt;//&lt;span class=&quot;code-quote&quot;&gt;&quot;example-title&quot;&lt;/span&gt; (Correct)
&lt;/span&gt;
$record-&amp;gt;description = &lt;span class=&quot;code-quote&quot;&gt;&quot;An example Item&quot;&lt;/span&gt;;
$record-&amp;gt;title = &lt;span class=&quot;code-quote&quot;&gt;&quot;Example Title&quot;&lt;/span&gt;;
$record-&amp;gt;slug = &lt;span class=&quot;code-quote&quot;&gt;&quot;custom-slug&quot;&lt;/span&gt;;
$record-&amp;gt;save();

echo $record-&amp;gt;slug; &lt;span class=&quot;code-comment&quot;&gt;//&lt;span class=&quot;code-quote&quot;&gt;&quot;custom-slug&quot;&lt;/span&gt; (Correct - First Save)
&lt;/span&gt;
$record-&amp;gt;description = &lt;span class=&quot;code-quote&quot;&gt;&quot;An example Item&quot;&lt;/span&gt;;
$record-&amp;gt;title = &lt;span class=&quot;code-quote&quot;&gt;&quot;Example Title&quot;&lt;/span&gt;;
$record-&amp;gt;slug = &lt;span class=&quot;code-quote&quot;&gt;&quot;custom-slug&quot;&lt;/span&gt;;
$record-&amp;gt;save();
echo $record-&amp;gt;slug; &lt;span class=&quot;code-comment&quot;&gt;//&lt;span class=&quot;code-quote&quot;&gt;&quot;example-title&quot;&lt;/span&gt; (Incorrect - Subsequent Save. Has regenerated it&apos;s &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; slug and lost the user defined one - even though we have passed the users custom one to the object prior to saving it.).&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>WAMP stack - PHP 5.3</environment>
            <key id="11511">DC-746</key>
            <summary>Sluggable canUpdate overridden after subsequent updates</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="ppanther">Adam Benson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 Jun 2010 01:09:26 +0000</created>
                <updated>Fri, 21 Jan 2011 11:41:17 +0000</updated>
                                    <version>1.2.0</version>
                <version>1.2.1</version>
                <version>1.2.2</version>
                <version>1.2.3</version>
                <version>1.2.4</version>
                                                <component>Behaviors</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="14530" author="caponica" created="Tue, 5 Oct 2010 11:09:20 +0000"  >&lt;p&gt;As far as I can see this is a problem with the logic in Sluggable::preUpdate() , I recently posted a comment about this here:&lt;br/&gt;
&lt;a href=&quot;http://groups.google.com/group/doctrine-user/browse_thread/thread/d40c6ac733738d4a&quot; class=&quot;external-link&quot;&gt;http://groups.google.com/group/doctrine-user/browse_thread/thread/d40c6ac733738d4a&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In short, I think that the code should be changed from:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;Sluggable.php&lt;/b&gt;&lt;/div&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 preUpdate(Doctrine_Event $event)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; !== $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_options[&apos;unique&apos;]) {
            $record = $event-&amp;gt;getInvoker();
            $name = $record-&amp;gt;getTable()-&amp;gt;getFieldName($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_options[&apos;name&apos;]);

            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ( ! $record-&amp;gt;$name || (
                &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; !== $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_options[&apos;canUpdate&apos;] &amp;amp;&amp;amp;
                ! array_key_exists($name, $record-&amp;gt;getModified())
            )) {
                $record-&amp;gt;$name = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;buildSlugFromFields($record);
            } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ( ! empty($record-&amp;gt;$name) &amp;amp;&amp;amp;
                &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; !== $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_options[&apos;canUpdate&apos;] &amp;amp;&amp;amp;
                array_key_exists($name, $record-&amp;gt;getModified()
            )) {
                $record-&amp;gt;$name = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;buildSlugFromSlugField($record);
            }
        }
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To this (i.e. remove the canUpdate conditions from the first inner if):&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;Sluggable.php (modified)&lt;/b&gt;&lt;/div&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 preUpdate(Doctrine_Event $event)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; !== $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_options[&apos;unique&apos;]) {
            $record = $event-&amp;gt;getInvoker();
            $name = $record-&amp;gt;getTable()-&amp;gt;getFieldName($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_options[&apos;name&apos;]);

            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ( ! $record-&amp;gt;$name) { &lt;span class=&quot;code-comment&quot;&gt;// i.e. remove the other conditions - you should only build the slug from other fields &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; it&apos;s empty
&lt;/span&gt;                $record-&amp;gt;$name = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;buildSlugFromFields($record);
            &lt;span class=&quot;code-comment&quot;&gt;// possibly add an &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; !canUpdate then make sure the old value is preserved&quot;&lt;/span&gt; here
&lt;/span&gt;            } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ( ! empty($record-&amp;gt;$name) &amp;amp;&amp;amp;
                &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; !== $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_options[&apos;canUpdate&apos;] &amp;amp;&amp;amp;
                array_key_exists($name, $record-&amp;gt;getModified()
            )) {
                $record-&amp;gt;$name = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;buildSlugFromSlugField($record);
            }
        }
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I have modified my local version of the Doctrine code to use this modification and it seems to (a) not have the problem you reported above and (b) generally work ok. However, I have not run the test suite against it.&lt;/p&gt;

&lt;p&gt;C&lt;/p&gt;</comment>
                    <comment id="14786" author="ppanther" created="Fri, 19 Nov 2010 02:11:29 +0000"  >&lt;p&gt;Updated affected versions&lt;/p&gt;</comment>
                    <comment id="14787" author="ppanther" created="Fri, 19 Nov 2010 02:13:54 +0000"  >&lt;p&gt;Thanks for the update Christian, perhaps you could share your fix as a patch?&lt;/p&gt;</comment>
                    <comment id="15154" author="jessovr" created="Fri, 21 Jan 2011 11:41:17 +0000"  >&lt;p&gt;Hi, I&apos;m working on a multilingue web portal with Symfony 1.4 and Doctrine 1.2.3, and man, your fix saves my life &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;br/&gt;
I use Sluggable slaved by i18n and without your fix Sluggable simply does not do the job, instead it messes up all slugs when updating, eventually you can&apos;t retrieve object anymore based on it. I would not set it as only minor bug ?&lt;br/&gt;
thanks, anyway.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-738] Missing reference to make code usable</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-738</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Web page documentation is missing some details on following page: // ...&lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/documentation/manual/1_0/pl/connections:get-connection-name&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/documentation/manual/1_0/pl/connections:get-connection-name&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/documentation/manual/1_2/pl/connections:get-connection-name&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/documentation/manual/1_2/pl/connections:get-connection-name&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I think they were just taken out of context from a page like:&lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/projects/orm/1.2/docs/manual/connections/en#get-connection-name&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/projects/orm/1.2/docs/manual/connections/en#get-connection-name&lt;/a&gt;&lt;br/&gt;
where a previous reference to manager .... oops, that page has no previous reference to &apos;$manager&apos; either!!!&lt;/p&gt;

&lt;p&gt;Where does the $manager variable come into this? FWIW, I tried that code to get the connection name in a Symfony/Doctrine CLI Task, and it says, &apos;using object accessor on non object&apos;. I&apos;ll keep working on what it&apos;s supposed to look like, but the last page above, and every page of documentation derived from it should be checked for the relevance and accuracy of the $manager variable.&lt;/p&gt;</description>
                <environment>Doctrine web site</environment>
            <key id="11497">DC-738</key>
            <summary>Missing reference to make code usable</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="gearond">Dennis Gearon</reporter>
                        <labels>
                    </labels>
                <created>Tue, 15 Jun 2010 20:50:10 +0000</created>
                <updated>Thu, 17 Jun 2010 09:24:58 +0000</updated>
                                                                    <component>Documentation</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-737] generateModelsFromYaml with (generateTableClasses = true) doesn&apos;t generate tables classes if (generateBaseClasses = false)</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-737</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;I can&apos;t see the reason why Table classes are only generated if Base classes are... (the same occurs for Package classes, but regarding code comments a Package is required to extend a Base class... but a Table can&apos;t and won&apos;t...)&lt;/p&gt;

&lt;p&gt;Here is some... patch? :s (it doesn&apos;t make unit tests to fail)&lt;/p&gt;

&lt;p&gt;Best regards&lt;/p&gt;</description>
                <environment>Doctrine SVN 1.2 r.7676</environment>
            <key id="11495">DC-737</key>
            <summary>generateModelsFromYaml with (generateTableClasses = true) doesn&apos;t generate tables classes if (generateBaseClasses = false)</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="gx">Guilliam X</reporter>
                        <labels>
                    </labels>
                <created>Tue, 15 Jun 2010 09:26:14 +0000</created>
                <updated>Tue, 15 Jun 2010 09:27:54 +0000</updated>
                                    <version>1.2.2</version>
                                                <component>Import/Export</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                    <attachment id="10653" name="DC-737.patch" size="948" author="gx" created="Tue, 15 Jun 2010 09:27:47 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-734] With loading &quot;conservative&quot; or &quot;PEAR&quot;, Doctrine_Core::loadModels returns different results for identical calls</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-734</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Edit:&lt;/b&gt; sorry &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/sad.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; I changed issue subject, please have a look at the first comment&lt;/p&gt;</description>
                <environment>Mac OS X 10.5, MAMP 1.9, PHP 5.2.13&lt;br/&gt;
Doctrine SVN 1.2 r.7676</environment>
            <key id="11489">DC-734</key>
            <summary>With loading &quot;conservative&quot; or &quot;PEAR&quot;, Doctrine_Core::loadModels returns different results for identical calls</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="gx">Guilliam X</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 Jun 2010 12:28:01 +0000</created>
                <updated>Tue, 15 Jun 2010 10:57:00 +0000</updated>
                                    <version>1.2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13322" author="gx" created="Tue, 15 Jun 2010 06:20:36 +0000"  >&lt;p&gt;Actually I have some interrogations about the way how &lt;em&gt;loadModels()&lt;/em&gt; works...&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;If using conservative or PEAR loading, in the directory listing loop:
	&lt;ul&gt;
		&lt;li&gt;if a class doesn&apos;t exist, it is loaded and added to the array to be returned, without verification (because you can&apos;t analyse a class that doesn&apos;t exist...);&lt;/li&gt;
		&lt;li&gt;but if it already exists, it is not loaded, and it is only added to the returned array if it is a &quot;valid model class&quot;.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;So, with our &quot;Foo + BaseFoo&quot; example, the first call to &lt;tt&gt;loadModels(&apos;models&apos;)&lt;/tt&gt; returns an array with &lt;em&gt;both &apos;Foo&apos; and &apos;BaseFoo&apos;&lt;/em&gt;. Now if you instantiate class Foo, thanks to modelsAutoload() both classes Foo and BaseFoo will then exist. Then, a 2nd call to &lt;tt&gt;loadModels(&apos;models&apos;)&lt;/tt&gt; will return an array with &lt;em&gt;only &apos;Foo&apos;&lt;/em&gt; because BaseFoo did not pass at l. 691. So loadModels() is not deterministic...&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;del&gt;If using aggressive loading, each found file is included immediatly (so, the class he defined now exists),&lt;/del&gt;
	&lt;ol&gt;
		&lt;li&gt;&lt;del&gt;then I see some &quot;hack&quot; for the possible &quot;birth&quot; of core classes (Doctrine_Access, Doctrine_Record_Abstract and Doctrine_Record in my debug session), but that also allows multiple classes definitions in a single model file, or a file defining a class with an arbitrary classname regardless of filename! This drastically differs form other loading modes!&lt;/del&gt;&lt;/li&gt;
		&lt;li&gt;&lt;del&gt;Then the(each) newly-existing class is not loaded nor added to the result unless it is a valid model; this is a big difference too!&lt;/del&gt;&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;IMHO:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;del&gt;although aggressive loading isn&apos;t meant to be used for production, it shouldn&apos;t differ &lt;em&gt;that much&lt;/em&gt; (we should be able to switch loading mode without it causes issues)&lt;/del&gt;&lt;/li&gt;
	&lt;li&gt;if loading mode is other than &quot;aggressive&quot;, loadModels() should &lt;em&gt;always&lt;/em&gt; (not only on first call) return &lt;b&gt;all&lt;/b&gt; the models found (recursively) in given directory(ies). If you want an array with only &quot;valid models&quot;, either use &lt;em&gt;getLoadedModels()&lt;/em&gt; (after loadModels()), or filter the return of loadModels() with &lt;em&gt;filterInvalidModels()&lt;/em&gt; (which is already used in Doctrine_Export, Doctrine_Export_Schema, ...)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;b&gt;Edit:&lt;/b&gt; oh my... I just found this in documentation:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Aggressive model loading is the default model loading method and is very simple, it will look for all files with a .php extension and will include it. &lt;em&gt;Doctrine can not satisfy any inheritance and if your models extend another model, it cannot include them in the correct order&lt;/em&gt; so it is &lt;em&gt;up to you&lt;/em&gt; to make sure all dependencies are satisfied in each class.&lt;/p&gt;

&lt;p&gt;With aggressive model loading &lt;em&gt;you can have multiple classes per file&lt;/em&gt; and the file name is &lt;em&gt;not required&lt;/em&gt; to be related to the name of the class inside of the file.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;However I still think that loadModels() should return the same array for 2 same (subsequent) calls...&lt;/p&gt;

&lt;p&gt;Regards&lt;/p&gt;</comment>
                    <comment id="13328" author="gx" created="Tue, 15 Jun 2010 10:57:00 +0000"  >&lt;p&gt;Attached a suggestion of patch that gives loadModels &lt;span class=&quot;error&quot;&gt;&amp;#91;different but&amp;#93;&lt;/span&gt; deterministic behaviors for both aggressive and non-aggressive loadings:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;agressive: will always return only names of &quot;valid&quot; models&lt;/li&gt;
	&lt;li&gt;other: will always return all names of loaded models (see previous comment for getting only &quot;valid&quot; ones)&lt;/li&gt;
&lt;/ul&gt;
</comment>
                </comments>
                    <attachments>
                    <attachment id="10654" name="DC-734.patch" size="787" author="gx" created="Tue, 15 Jun 2010 10:57:00 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-732] &quot;charset&quot; and &quot;collation&quot; column options cause seeking for a validator</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-732</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;If a record has a column defined with &lt;tt&gt;&apos;charset&apos;&lt;/tt&gt; and/or &lt;tt&gt;&apos;collation&apos;&lt;/tt&gt; in its options, calling &lt;tt&gt;$record-&amp;gt;save()&lt;/tt&gt; triggers exception&lt;br/&gt;
&lt;tt&gt;PHP Fatal error:  Uncaught exception &apos;Doctrine_Exception&apos; with message &apos;Validator named &apos;charset&apos; not available.&apos; in /&lt;span class=&quot;error&quot;&gt;&amp;#91;...&amp;#93;&lt;/span&gt;/lib/vendor/doctrine/Doctrine/Validator.php:56&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Fix is trivial, see attached patch &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;

&lt;p&gt;Thank you&lt;/p&gt;</description>
                <environment>Doctrine SVN 1.2 r.7676</environment>
            <key id="11486">DC-732</key>
            <summary>&quot;charset&quot; and &quot;collation&quot; column options cause seeking for a validator</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="gx">Guilliam X</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 Jun 2010 06:23:43 +0000</created>
                <updated>Tue, 15 Jun 2010 07:17:10 +0000</updated>
                                    <version>1.2.2</version>
                                                <component>Validators</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13311" author="gx" created="Mon, 14 Jun 2010 16:21:50 +0000"  >&lt;p&gt;&lt;sub&gt;oops I had mis-clicked priority to max instead of minor...&lt;/sub&gt;&lt;/p&gt;</comment>
                    <comment id="13326" author="gx" created="Tue, 15 Jun 2010 07:17:04 +0000"  >&lt;p&gt;Edited the patch with &quot;branches/1.2&quot; as root&lt;/p&gt;

&lt;p&gt;I don&apos;t provide a test case but they all run without failure after patching &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;</comment>
                </comments>
                    <attachments>
                    <attachment id="10651" name="DC-732.patch" size="641" author="gx" created="Tue, 15 Jun 2010 07:17:04 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-729] Doctrine_Parser_Xml numeric key in array</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-729</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;I convert array with numeric keys to xml and recived error message&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Warning: SimpleXMLElement::addChild() &lt;span class=&quot;error&quot;&gt;&amp;#91;simplexmlelement.addchild&amp;#93;&lt;/span&gt;: Element name is required in /home/vital/projects/hino/lib/vendor/symfony-1.4.3/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Parser/Xml.php on line 74&lt;/p&gt;&lt;/blockquote&gt; 

&lt;p&gt;array&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;array&lt;br/&gt;
  &apos;id&apos; =&amp;gt; string &apos;25&apos; (length=2)&lt;br/&gt;
  &apos;count&apos; =&amp;gt; int 3&lt;br/&gt;
  &apos;cost&apos; =&amp;gt; float 68135.27&lt;br/&gt;
  &apos;user_id&apos; =&amp;gt; string &apos;1&apos; (length=1)&lt;br/&gt;
  &apos;profile_id&apos; =&amp;gt; string &apos;1&apos; (length=1)&lt;br/&gt;
  &apos;created_at&apos; =&amp;gt; string &apos;2010-06-12 14:59:52&apos; (length=19)&lt;br/&gt;
  &apos;OrderProductList&apos; =&amp;gt; &lt;br/&gt;
    array&lt;br/&gt;
      0 =&amp;gt; &lt;br/&gt;
        array&lt;br/&gt;
          &apos;id&apos; =&amp;gt; string &apos;56&apos; (length=2)&lt;br/&gt;
          &apos;count&apos; =&amp;gt; string &apos;1&apos; (length=1)&lt;br/&gt;
          &apos;cost&apos; =&amp;gt; string &apos;9511.82&apos; (length=7)&lt;br/&gt;
          &apos;user_id&apos; =&amp;gt; string &apos;1&apos; (length=1)&lt;br/&gt;
          &apos;code_1c&apos; =&amp;gt; string &apos;2399&apos; (length=4)&lt;br/&gt;
          &apos;catalog_number&apos; =&amp;gt; string &apos;0446537150&apos; (length=10)&lt;br/&gt;
          &apos;shot_name&apos; =&amp;gt; string &apos;PAD KIT, DISC BRAKE&apos; (length=19)&lt;br/&gt;
          &apos;name&apos; =&amp;gt; string &apos;&apos; (length=0)&lt;br/&gt;
          &apos;vin&apos; =&amp;gt; string &apos;&apos; (length=0)&lt;br/&gt;
          &apos;engine_model&apos; =&amp;gt; string &apos;&apos; (length=0)&lt;br/&gt;
          &apos;status_id&apos; =&amp;gt; string &apos;1&apos; (length=1)&lt;br/&gt;
          &apos;transport_id&apos; =&amp;gt; string &apos;1&apos; (length=1)&lt;br/&gt;
          &apos;order_id&apos; =&amp;gt; string &apos;25&apos; (length=2)&lt;br/&gt;
          &apos;Order&apos; =&amp;gt; boolean false&lt;br/&gt;
      1 =&amp;gt; &lt;br/&gt;
        array&lt;br/&gt;
          &apos;id&apos; =&amp;gt; string &apos;57&apos; (length=2)&lt;br/&gt;
          &apos;count&apos; =&amp;gt; int 1&lt;br/&gt;
          &apos;cost&apos; =&amp;gt; float 55787.49&lt;br/&gt;
          &apos;user_id&apos; =&amp;gt; string &apos;1&apos; (length=1)&lt;br/&gt;
          &apos;code_1c&apos; =&amp;gt; string &apos;2629&apos; (length=4)&lt;br/&gt;
          &apos;catalog_number&apos; =&amp;gt; string &apos;4405037040&apos; (length=10)&lt;br/&gt;
          &apos;shot_name&apos; =&amp;gt; string &apos;ACTUATOR ASSY, BRAKE&apos; (length=20)&lt;br/&gt;
          &apos;name&apos; =&amp;gt; string &apos;&apos; (length=0)&lt;br/&gt;
          &apos;vin&apos; =&amp;gt; string &apos;&apos; (length=0)&lt;br/&gt;
          &apos;engine_model&apos; =&amp;gt; string &apos;&apos; (length=0)&lt;br/&gt;
          &apos;status_id&apos; =&amp;gt; int 1&lt;br/&gt;
          &apos;transport_id&apos; =&amp;gt; int 1&lt;br/&gt;
          &apos;order_id&apos; =&amp;gt; string &apos;25&apos; (length=2)&lt;br/&gt;
          &apos;Order&apos; =&amp;gt; boolean false&lt;br/&gt;
      2 =&amp;gt; &lt;br/&gt;
        array&lt;br/&gt;
          &apos;id&apos; =&amp;gt; string &apos;58&apos; (length=2)&lt;br/&gt;
          &apos;count&apos; =&amp;gt; string &apos;4&apos; (length=1)&lt;br/&gt;
          &apos;cost&apos; =&amp;gt; float 2835.96&lt;br/&gt;
          &apos;user_id&apos; =&amp;gt; string &apos;1&apos; (length=1)&lt;br/&gt;
          &apos;code_1c&apos; =&amp;gt; string &apos;2224&apos; (length=4)&lt;br/&gt;
          &apos;catalog_number&apos; =&amp;gt; string &apos;S156071562&apos; (length=10)&lt;br/&gt;
          &apos;shot_name&apos; =&amp;gt; string &apos;ELEMENT SET&apos; (length=11)&lt;br/&gt;
          &apos;name&apos; =&amp;gt; string &apos;&apos; (length=0)&lt;br/&gt;
          &apos;vin&apos; =&amp;gt; string &apos;&apos; (length=0)&lt;br/&gt;
          &apos;engine_model&apos; =&amp;gt; string &apos;&apos; (length=0)&lt;br/&gt;
          &apos;status_id&apos; =&amp;gt; int 1&lt;br/&gt;
          &apos;transport_id&apos; =&amp;gt; int 1&lt;br/&gt;
          &apos;order_id&apos; =&amp;gt; string &apos;25&apos; (length=2)&lt;br/&gt;
          &apos;Order&apos; =&amp;gt; boolean false&lt;/p&gt;&lt;/blockquote&gt; 

&lt;p&gt;in doctrine/Doctrine/Parser/Xml.php on line 74&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;$key = preg_replace(&apos;/&lt;span class=&quot;error&quot;&gt;&amp;#91;^a-z&amp;#93;&lt;/span&gt;/i&apos;, &apos;&apos;, $key);&lt;/p&gt;

&lt;p&gt;            if (is_array($value) &amp;amp;&amp;amp; ! empty($value)) {&lt;br/&gt;
                $node = $xml-&amp;gt;addChild($key);&lt;/p&gt;
&lt;/blockquote&gt; 

&lt;p&gt;$key = preg_replace(&apos;/&lt;span class=&quot;error&quot;&gt;&amp;#91;^a-z&amp;#93;&lt;/span&gt;/i&apos;, &apos;&apos;, $key); from 69 line conver numeric key into empty string&lt;/p&gt;



</description>
                <environment></environment>
            <key id="11478">DC-729</key>
            <summary>Doctrine_Parser_Xml numeric key in array</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="codeninja">Vitaliy Mayorov</reporter>
                        <labels>
                    </labels>
                <created>Sat, 12 Jun 2010 01:47:24 +0000</created>
                <updated>Sat, 12 Jun 2010 01:47:24 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-710] doctrine:build-model does not create phpdoc for doctrine builtin attributes (sluggable, timestampable, id)</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-710</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;When defining a table with actAs attributes (Timestampable, Sluggable, ...) doctrine creates columns in the database and corresponding attributes in the model classes, but the PHPDOC in the model classes does not include getters and setters for these &quot;automatic&quot; attributes.&lt;br/&gt;
 This is unconvenient when using an IDE as the getter are not present in the auto completion.&lt;/p&gt;

&lt;p&gt; The enhancement would be to add the appropriate phpdoc @property tags so that symfony can generate all the @method tags.&lt;/p&gt;

&lt;p&gt;see &lt;a href=&quot;http://trac.symfony-project.org/ticket/8711&quot; class=&quot;external-link&quot;&gt;http://trac.symfony-project.org/ticket/8711&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

&lt;p&gt;Kevin Hatry&lt;/p&gt;</description>
                <environment></environment>
            <key id="11426">DC-710</key>
            <summary>doctrine:build-model does not create phpdoc for doctrine builtin attributes (sluggable, timestampable, id)</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="kevinhatry">Kevin Hatry</reporter>
                        <labels>
                    </labels>
                <created>Sat, 29 May 2010 14:58:11 +0000</created>
                <updated>Tue, 8 Jun 2010 09:51:21 +0000</updated>
                                    <version>1.2.0</version>
                                                <component>Attributes</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13143" author="jwage" created="Tue, 8 Jun 2010 09:51:21 +0000"  >&lt;p&gt;I don&apos;t think this is a problem that can be patched easily, unfortunately.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-686] postHydrate listener isn&apos;t called for related records</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-686</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;I have model A which has a one-to-one relationship with model B. They both have a listener on them which does an action on postHydrate. When I load model A, the postHydrate is called successfully. However when I then load the related model B (via $oMyModelA-&amp;gt;B; or whatever), the listener is not called. This is the same when using the hook on the model - A::postHydrate() is called but B::postHydrate() is not.&lt;/p&gt;

&lt;p&gt;Unit test demonstrating this bug is attached.&lt;/p&gt;</description>
                <environment>Debian</environment>
            <key id="11377">DC-686</key>
            <summary>postHydrate listener isn&apos;t called for related records</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="ondistantshores">Cameron Ross</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 May 2010 03:28:43 +0000</created>
                <updated>Sun, 5 Sep 2010 12:22:28 +0000</updated>
                                    <version>1.2.2</version>
                                                <component>Record</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="14278" author="ben.davies" created="Sun, 5 Sep 2010 12:22:28 +0000"  >&lt;p&gt;This is invalid.&lt;br/&gt;
In the test case:&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;$r-&amp;gt;Related-&amp;gt;save();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;doesn&apos;t create a blank record, thus there is never a relation to postHydrate&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10605" name="NewTestCase.php" size="3456" author="ondistantshores" created="Mon, 17 May 2010 03:28:43 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-642] import/export Array</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-642</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Retreive an object &quot;A&quot; and some related object from the database.&lt;br/&gt;
Export it into an array.&lt;br/&gt;
Create an other instance of &quot;A&quot; and import array from the previous exported array.&lt;br/&gt;
Just save the new instance.&lt;/p&gt;

&lt;p&gt;Doctrine re-create the object into DB. If you have some integrity constraint like primary key, you will see an SQL error.&lt;/p&gt;

&lt;p&gt;In the following example with &quot;video&quot; and &quot;tags&quot;, Doctrine want to re-create the video and tag objects.&lt;br/&gt;
The reason is that the exported array doesn&apos;t include the &quot;_identifier&quot; key.&lt;/p&gt;

&lt;p&gt;In my mind, the problem show and other problem, that we are force to use the &quot;identifier&quot; or assignIdentifier on the Model domain object to work with an existing object. &lt;br/&gt;
Doctrine know the Primary key of all the model domain objects. Why Doctrine doesn&apos;t use the assignIdentifier when the user change the PK of the Model domain object... In this case, assignIdentifier could be into a private scope.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;$oVideo	= Doctrine_Query::create ()&lt;br/&gt;
    		-&amp;gt;select (&quot;video.&lt;b&gt;, tags.&lt;/b&gt;&quot;)&lt;br/&gt;
    		-&amp;gt;from (&quot;Model_Video video&quot;)&lt;br/&gt;
    		-&amp;gt;leftJoin (&quot;video.tags tags&quot;)&lt;br/&gt;
    		-&amp;gt;where (&quot;video.id_show = 500&quot;)&lt;br/&gt;
    		-&amp;gt;fetchOne ();&lt;br/&gt;
$oVideoArray	= $oVideo-&amp;gt;toArray();&lt;br/&gt;
$oVideo-&amp;gt;save ();&lt;/p&gt;

&lt;p&gt;$oVideoBis	= new Model_Video ();&lt;br/&gt;
$oVideoBis-&amp;gt;fromArray($oVideoArray, true);&lt;br/&gt;
$oVideoArrayBis	= $oVideo-&amp;gt;toArray();&lt;br/&gt;
$oVideoBis-&amp;gt;save ();&lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment></environment>
            <key id="11256">DC-642</key>
            <summary>import/export Array</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="armetiz">Thomas Tourlourat - Armetiz</reporter>
                        <labels>
                    </labels>
                <created>Thu, 22 Apr 2010 08:04:15 +0000</created>
                <updated>Thu, 22 Apr 2010 08:04:15 +0000</updated>
                                    <version>1.2.2</version>
                                                <component>Record</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-607] Doctrine concrete inheritance link between tables</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-607</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I pointed out a strange problem:&lt;br/&gt;
I have two tables that are linked with a one to many relation ship.&lt;br/&gt;
Each table has some concrete inherited tables.&lt;br/&gt;
Here is the schema:&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;Batch:
  columns:
    code: string
    is_pure: &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt;

Flask:
  columns:
    batch_id: integer
    code: string
    quantity: integer
  relations:
    Batch:
      local: batch_id
      foreign: id
      foreignType: many
    
ProducedBatch:
  inheritance:
    type: concrete
    &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt;: Batch
  columns:
    production_date: date
    
BoughtBatch:
  inheritance:
    type: concrete
    &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt;: Batch
  columns:
    supplier: string
    
ProducedFlask:
  inheritance:
    type: concrete
    &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt;: Flask
  columns:
    weight: integer
    
BoughtFlask:
  inheritance:
    type: concrete
    &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt;: Flask
  columns:
    price: integer
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The problem occurs when I try to populate the database.&lt;br/&gt;
Here is the data:&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;ProducedBatch:
  B1:
    code: Batch1

ProducedFlask:
  F1:
    Batch: B1
    code: Flask1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When loading fixtures, I get a&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;Invalid row key specified: (batch) B1, referred to in (produced_flask) F1&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;In fact, Doctrine doesn&apos;t take into account the primary key inherited from Flask table.&lt;br/&gt;
The mapping should be done between parent and child tables.&lt;/p&gt;

&lt;p&gt;The only solution to solve this is to set a relationship between each couple of sub-table (ProducedFlask -&amp;gt; ProducedBatch and BoughtFlask -&amp;gt; BoughtFlask).&lt;/p&gt;</description>
                <environment>Symfony 1.4.3, php5.3.0 (snow leopard version)</environment>
            <key id="11149">DC-607</key>
            <summary>Doctrine concrete inheritance link between tables</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="romanb">Roman S. Borschel</assignee>
                                <reporter username="jc13">Julien Chiron</reporter>
                        <labels>
                    </labels>
                <created>Tue, 30 Mar 2010 05:44:45 +0000</created>
                <updated>Wed, 21 Jul 2010 03:59:18 +0000</updated>
                                                                    <component>Inheritance</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="13627" author="etag" created="Wed, 21 Jul 2010 03:59:18 +0000"  >&lt;p&gt;It is very strange that the doctrine inheritance system don&apos;t inherite all the relationship of the mother-table on all sub-table. I think that it will be a very good improvement to fix this problem.&lt;/p&gt;

&lt;p&gt;For example if you are this model :&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;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: yml.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt; 
motherTable:
  columns:
     code: string
     relationTable_id: integer
  relation:
     relationTableRelation:
            local: relationTable_id
            foreign: id
            type: one     

subTable:
    inheritance:
        type: concrete
    colums:
        name: string

relationTable:
    columns:
        code: integer
    relations:
        motherTableRelation:
            local: id
            foreign: relationTable_id
            type: many
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;In this example, the relationTableRelation will be inherited, it is good but the other side of the relation in relation table will always go on motherTable and not on subTable, but motherTable is always empty, moreover subTable don&apos;t share its ID with motherTable, so this side of the relationship is unusefull because we can find subTable element in relation with a relationTable element.&lt;/p&gt;

&lt;p&gt;It will be good to find a solution to this issue &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;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-597] symfony doctrine:generate-migrations-diff task doesn&apos;t take attributes into account</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-597</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;I provided the following bug report on the symfony website and was redirected here.  The response I received was:&lt;/p&gt;

&lt;p&gt;Ticket #8438 (closed defect: invalid)&lt;br/&gt;
03/20/10 12:55:04 changed by Kris.Wallsmith&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;status changed from new to closed.&lt;/li&gt;
	&lt;li&gt;resolution set to invalid.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The symfony task is a wrapper for the Doctrine task. Please post issues to their Jira. &lt;a href=&quot;http://www.doctrine-project.org/jira&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;------------------&lt;br/&gt;
Bug details:&lt;br/&gt;
------------------&lt;/p&gt;

&lt;p&gt;When running doctrine:generate-migrations-diff, I am receiving foreign key files. However, my schema.yml is defined as such:&lt;/p&gt;

&lt;p&gt;attributes: &lt;br/&gt;
  export: tables&lt;br/&gt;
TableOne:&lt;br/&gt;
  columns:&lt;br/&gt;
    ...&lt;br/&gt;
TableTwo:&lt;br/&gt;
  columns:&lt;br/&gt;
    ...&lt;/p&gt;

&lt;p&gt;It would appear that when running doctrine:build it properly ignores the foreign key generation, but that it does not when running doctrine:generate-migrations-diff. This task should be corrected to take this attribute into account. Keep in mind that this may be relevant to the other migration tasks, and they should be updated as well if this is a valid bug. &lt;/p&gt;</description>
                <environment>Windows 7, Apache 2.2.14, PHP 5.2.11, MySQL 5.0.86</environment>
            <key id="11116">DC-597</key>
            <summary>symfony doctrine:generate-migrations-diff task doesn&apos;t take attributes into account</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="bobttd">Bob Stremel</reporter>
                        <labels>
                    </labels>
                <created>Tue, 23 Mar 2010 14:16:17 +0000</created>
                <updated>Tue, 8 Jun 2010 16:17:57 +0000</updated>
                                    <version>1.2.0</version>
                                                <component>Migrations</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-560] Object1-&gt;Unlink(Relation, Id2) doesn&apos;t work, if primary key order in table of m2m reference isnt 1:Object 2: Id to unlink, when relation set to EQUAL= TRUE</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-560</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Object1-&amp;gt;Unlink(Relation, Id2) doesn&apos;t work, if primary key order in table of m2m reference isnt 1:Object 2: Id to unlink, when relation set to EQUAL= TRUE&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;User:
  actAs: 
    Timestampable: ~
  columns:    
    name:         { type: string(255), notnull: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; }
    last_name:    { type: string(255), notnull: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; }
    picture:      { type: string(255), notnull: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; }
    birthday:     { type: timestamp, notnull: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; }
    gender:       { type: string(255) }
    rating:       { type: integer, &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;:0} 
    num_comments: { type: integer, &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;:0} 
    num_groups:   { type: integer, &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;:0} 
  inheritance:
    &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt;: Member
    type: column_aggregation
    keyField: type
    keyValue: 1                    
  relations:
    Friends:    { onDelete: CASCADE, class: User, foreignAlias: Friends, refClass: FriendReference, local: user1, foreign: user2, equal: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt; }
    Request:    { onDelete: CASCADE, class: User, foreignAlias: Pending, refClass: PendingReference, local: user1, foreign: user2 }
    Blocker:    { onDelete: CASCADE, class: User, foreignAlias: Blocked, refClass: BlockedReference, local: user1, foreign: user2 }

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;if&lt;/span&gt;(isset($refToRemove))
			{
				&lt;span class=&quot;code-keyword&quot;&gt;switch&lt;/span&gt; ($refToRemove)
				{
					&lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; &apos;FriendReference&apos;: $references = $currentUser-&amp;gt;Friends; $relation = &apos;Friends&apos;;	&lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
					&lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; &apos;PendingReference&apos;: $references = $currentUser-&amp;gt;Pending; $relation = &apos;Pending&apos;; &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
					&lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; &apos;BlockerReference&apos;: $references = $currentUser-&amp;gt;Blocker; $relation = &apos;Blocker&apos;; &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
					&lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; &apos;RequestReference&apos;: $references = $currentUser-&amp;gt;Request; $relation = &apos;Request&apos;; &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
				}
				 
				foreach($references as $reference)
				{

					&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($reference-&amp;gt;id == $user2-&amp;gt;id)
                        $currentUser-&amp;gt;unlink($relation, array($user2-&amp;gt;id), $now = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;);
				}
                
			}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;when you count relations from one side and the other it show that when set to EQUAL = TRUE relations are reciprocal, but unlink still minds primary keys order in order to function&lt;/p&gt;</description>
                <environment>Windows XP, Apache 2.2, PHP 5, Doctrine 1.2 on Symfony 1.4</environment>
            <key id="11021">DC-560</key>
            <summary>Object1-&gt;Unlink(Relation, Id2) doesn&apos;t work, if primary key order in table of m2m reference isnt 1:Object 2: Id to unlink, when relation set to EQUAL= TRUE</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/reopened.png">Reopened</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="marciano">Mariano Ramon</reporter>
                        <labels>
                    </labels>
                <created>Wed, 10 Mar 2010 12:11:56 +0000</created>
                <updated>Thu, 27 Jan 2011 13:26:33 +0000</updated>
                                    <version>1.2.0</version>
                                                <component>Relations</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="12227" author="jwage" created="Mon, 15 Mar 2010 16:04:44 +0000"  >&lt;p&gt;I am unable to reproduce the issue. When I test everything works as expected. We really need some more information and a test case in order to be sure of any issue.&lt;/p&gt;</comment>
                    <comment id="12522" author="slickrick" created="Tue, 30 Mar 2010 17:11:04 +0000"  >&lt;p&gt;I was able to reproduce this issue in Doctrine 1.2. The issue is a two part scenerio, which makes it kind of hard to debug.   But here is how to reproduce it.&lt;/p&gt;

&lt;p&gt;1.) Lets assume you have a Product model with ID 14.  &lt;br/&gt;
2.) Lets assume you have an &quot;equal&quot; M:M table that links to itself, (product_product_group). &quot;product_id_1&quot; and &quot;product_id_2&quot; are a compound primary key which link back to the Product model.&lt;br/&gt;
3.) Lets assume you that Product 14 is currently linked to products with IDs 2, 5, and 13.&lt;br/&gt;
4.) Assuming $object is an instance of Product id 14, call $object-&amp;gt;unlink(array(2));&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;SQL QUERY LOG for Step 4.)&lt;br/&gt;
482 Query       START TRANSACTION&lt;br/&gt;
482 Query       DELETE FROM product_product_group WHERE (product_id_1 = &apos;14&apos; AND product_id_2 IN (&apos;2&apos;))&lt;br/&gt;
482 Query       UPDATE product_product_group SET product_id_1 = &apos;5&apos; WHERE product_id_1 = &apos;14&apos; AND product_id_2 = &apos;5&apos;&lt;br/&gt;
482 Query       UPDATE product_product_group SET product_id_1 = &apos;13&apos; WHERE product_id_1 = &apos;14&apos; AND product_id_2 = &apos;13&apos;&lt;br/&gt;
482 Query       DELETE FROM product_product_group WHERE product_id_2 = &apos;2&apos; AND product_id_1 = &apos;14&apos;&lt;br/&gt;
482 Query       COMMIT&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;The result is as follows:&lt;br/&gt;
  a.) Doctrine properly unlinks ID 2&lt;br/&gt;
  b.) Doctrine updates the M:M table and sets the remaining two IDs (5 and 13) and links them to themselves (it shouldn&apos;t run these updates).  Now, all we have in our database are two links (5-5 and 13-13).&lt;/p&gt;

&lt;p&gt;5.) Now, Product ID 14 has no links anymore in the M:M table.  So we call $object-&amp;gt;link(array(2, 5, 13));  &lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;SQL QUERY LOG for Step 5.)&lt;br/&gt;
512 Query       START TRANSACTION&lt;br/&gt;
512 Query       SELECT ... FROM to_product_id t WHERE (t.id IN (&apos;13&apos;, &apos;2&apos;, &apos;5&apos;))&lt;br/&gt;
512 Query       INSERT INTO to_product_id_to_product_id_group (product_id_2, product_id_1) VALUES (&apos;2&apos;, &apos;14&apos;)&lt;br/&gt;
512 Query       INSERT INTO to_product_id_to_product_id_group (product_id_2, product_id_1) VALUES (&apos;5&apos;, &apos;14&apos;)&lt;br/&gt;
512 Query       INSERT INTO to_product_id_to_product_id_group (product_id_2, product_id_1) VALUES (&apos;13&apos;, &apos;14&apos;)&lt;br/&gt;
512 Query       COMMIT&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;This works as expected.&lt;/p&gt;

&lt;p&gt;6.) Now, in our database, Product ID 14 properly links to Ids 2, 5, and 13. BUT IDs 5 and 13 also have a link to themselves as a byproduct of the UPDATE queries called in step 4.).&lt;br/&gt;
7.) Now, we call $object-&amp;gt;unlink(array(2)) again.&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;SQL QUERY LOG for Step 7.)&lt;br/&gt;
432 Query       START TRANSACTION&lt;br/&gt;
432 Query       DELETE FROM product_product_group WHERE (product_id_1 = &apos;14&apos; AND product_id_2 IN (&apos;2&apos;))&lt;br/&gt;
432 Query       UPDATE product_product_group SET product_id_1 = &apos;5&apos; WHERE product_id_1 = &apos;2&apos; AND product_id_2 = &apos;5&apos;&lt;br/&gt;
432 Query       UPDATE product_product_group SET product_id_1 = &apos;5&apos; WHERE product_id_1 = &apos;14&apos; AND product_id_2 = &apos;5&apos;&lt;br/&gt;
432 Query       ROLLBACK&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;The following error occurs:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Mar 30 20:40:41 symfony &lt;span class=&quot;error&quot;&gt;&amp;#91;err&amp;#93;&lt;/span&gt; exception &apos;Doctrine_Connection_Mysql_Exception&apos; with message &apos;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;23000&amp;#93;&lt;/span&gt;: Integrity constraint violation: 1062 Duplicate entry &apos;5-5&apos; for key 1&apos; in /path/to/symfony/1.4/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php:1082&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;So basically, it repeated the same queries from step 4.), however this time around, when attempting to set ID 5 to itself, it fails because there is already an entry this pair in the database.  Since we have a compound primary key, this non-unique combination is not allowed.  I don&apos;t know why its trying to run these UPDATE queries, but its definitely something to do with thre relationship being &quot;equal&quot;.&lt;/p&gt;</comment>
                    <comment id="13189" author="jwage" created="Tue, 8 Jun 2010 14:37:14 +0000"  >&lt;p&gt;It is hard to decipher the problem. It is best and most clear to provide a test case.&lt;/p&gt;</comment>
                    <comment id="15195" author="slickrick" created="Thu, 27 Jan 2011 13:26:33 +0000"  >&lt;p&gt;I know this is old, and is likely to never be resolved, but the problem does still exist.&lt;/p&gt;

&lt;p&gt;Basically, &quot;unlinking&quot; an equal relation only unlinks one side of the relationship:&lt;/p&gt;

&lt;p&gt;DELETE FROM user_user_group WHERE (user_id_1 = &apos;20&apos; AND user_id_2 IN (&apos;9&apos;))&lt;/p&gt;

&lt;p&gt;However, if the relationship was created from the other side (i.e. user_id_1 = 9 and user_id_2 = 20), then it doesn&apos;t properly get rid of the relationship.  Again, this only applies when a relationship is marked as &quot;equal&quot;.&lt;/p&gt;

&lt;p&gt;Here is another post about the same issue, with their work-around:&lt;br/&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/1385281/how-do-i-remove-a-self-referencing-nn-relation-in-doctrine&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/1385281/how-do-i-remove-a-self-referencing-nn-relation-in-doctrine&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-497] A new task to set migration to a certain version</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-497</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;It would be nice to have a task which you could tell to set to the proper version. If the migrations_version table did not exist yet, it would create the table and set the version.&lt;/p&gt;

&lt;p&gt;Explanation:&lt;br/&gt;
  Most times migrations come as an after thought after the code db is already pushed live.  Therefore you have to manually create the migrations table and set it to a version just before the newest migration.&lt;/p&gt;

&lt;p&gt;  It might also be better to just update the migrate task to check if a migration_version table exists, if not to just run the single migration which is specified.&lt;/p&gt;</description>
                <environment>All</environment>
            <key id="10880">DC-497</key>
            <summary>A new task to set migration to a certain version</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="romanb">Roman S. Borschel</assignee>
                                <reporter username="isleshocky77">Stephen Ostrow</reporter>
                        <labels>
                    </labels>
                <created>Fri, 12 Feb 2010 17:33:32 +0000</created>
                <updated>Sat, 13 Feb 2010 01:55:11 +0000</updated>
                                    <version>1.2.1</version>
                                                <component>Migrations</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-464] [Inheritance] Couldn&apos;t save record with inheritance by a relationship if the record has no column modified (solution proposed)</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-464</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Please consider the following TestCase&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Inheritance with no property setted, saved by relationship&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;class Doctrine_Ticket_DC464_TestCase &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Doctrine_UnitTestCase
{
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function prepareTables()
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;tables[] = &apos;Ticket_DC464_Entity&apos;;
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;tables[] = &apos;Ticket_DC464_Article&apos;;
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;tables[] = &apos;Ticket_DC464_User&apos;;
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;tables[] = &apos;Ticket_DC464_Group&apos;;
        parent::prepareTables();
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function testTest()
    {
        $User = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Ticket_DC464_User();

        $Article = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Ticket_DC464_Article();
        $Article-&amp;gt;title = &apos;my first article&apos;;
        $Article-&amp;gt;Author = $User;

        $Article-&amp;gt;save();

        $UserFetched = Doctrine::getTable(&apos;Ticket_DC464_User&apos;)-&amp;gt;find(1);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;assertTrue($UserFetched &lt;span class=&quot;code-keyword&quot;&gt;instanceof&lt;/span&gt; Ticket_DC464_User);
       &lt;span class=&quot;code-comment&quot;&gt;//$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;assertEqual($UserFetched-&amp;gt;type, 1);
&lt;/span&gt;

    }
}



class Ticket_DC464_Entity &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Doctrine_Record
{
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setTableDefinition()
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;hasColumn(&apos;id&apos;, &apos;integer&apos;, 11, array(&apos;autoincrement&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;, &apos;primary&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;));
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;hasColumn(&apos;facultative_field&apos;, &apos;string&apos;, 255);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;hasColumn(&apos;type&apos;, &apos;string&apos;, 255);

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;setSubClasses(array(
             &apos;Ticket_DC464_User&apos; =&amp;gt;  array(&apos;type&apos; =&amp;gt; 1),
             &apos;Ticket_DC464_Group&apos; =&amp;gt; array(&apos;type&apos; =&amp;gt; 2),
        ));

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;option(&apos;type&apos;, &apos;InnoDB&apos;);
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setUp()
    {
    }
}

class Ticket_DC464_User &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Ticket_DC464_Entity { }
class Ticket_DC464_Group &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Ticket_DC464_Entity { }

class Ticket_DC464_Article &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Doctrine_Record
{
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setTableDefinition()
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;hasColumn(&apos;id&apos;, &apos;integer&apos;, 11, array(&apos;autoincrement&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;, &apos;primary&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;));
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;hasColumn(&apos;title&apos;, &apos;string&apos;, 30);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;hasColumn(&apos;author_id&apos;, &apos;integer&apos;, 11);

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;option(&apos;type&apos;, &apos;InnoDB&apos;);
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setUp()
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;hasOne(&apos;Ticket_DC464_User as Author&apos;, array(
             &apos;local&apos; =&amp;gt; &apos;author_id&apos;,
             &apos;foreign&apos; =&amp;gt; &apos;id&apos;));
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;Notice that in the test, the $User instance has no property setted (in fact in this test, the &quot;useless_field&quot; in the model is... useless).&lt;/p&gt;

&lt;p&gt;This test fails (the $User object is not saved) because the method UnitOfWork-&amp;gt;saveRelatedLocalKeys() - called in saveGraph(), itself called by $Article-&amp;gt;save() - returns false because no column has been modified (line 395).&lt;/p&gt;



&lt;p&gt;To fix this, the Record-&amp;gt;assignInheritanceValues() should be executed in top of isModified(), or for each related object in UnitOfWork-&amp;gt;saveRelatedLocalKeys() (and probably UnitOfWork-&amp;gt;saveRelatedForeignKeys() too).&lt;/p&gt;

&lt;p&gt;I&apos;ve attached the test.&lt;/p&gt;</description>
                <environment></environment>
            <key id="10806">DC-464</key>
            <summary>[Inheritance] Couldn&apos;t save record with inheritance by a relationship if the record has no column modified (solution proposed)</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="romanb">Roman S. Borschel</assignee>
                                <reporter username="colin.darie">Colin Darie</reporter>
                        <labels>
                    </labels>
                <created>Fri, 29 Jan 2010 23:51:39 +0000</created>
                <updated>Wed, 9 Jun 2010 06:50:22 +0000</updated>
                                    <version>1.2.1</version>
                                                <component>Inheritance</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="11527" author="colin.darie" created="Sat, 30 Jan 2010 02:51:11 +0000"  >&lt;p&gt;Fix test with the right prefixes&lt;/p&gt;</comment>
                    <comment id="12259" author="jwage" created="Mon, 15 Mar 2010 17:51:17 +0000"  >&lt;p&gt;Do you have a patch for the issue too?&lt;/p&gt;</comment>
                    <comment id="12286" author="colin.darie" created="Tue, 16 Mar 2010 13:32:52 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;no I doesn&apos;t have a patch for this, because I was not sure what the best way to solve this.&lt;br/&gt;
However, patching the isModified() method is maybe the safest way, with a simple  $this-&amp;gt;assignInheritanceValues(); at top (around line 2100).&lt;/p&gt;</comment>
                    <comment id="13210" author="jwage" created="Tue, 8 Jun 2010 16:51:40 +0000"  >&lt;p&gt;Can you provide a patch for that change then so I can see it and test it? Thanks, Jon&lt;/p&gt;</comment>
                    <comment id="13247" author="colin.darie" created="Wed, 9 Jun 2010 06:50:22 +0000"  >&lt;p&gt;I&apos;ve attached the patch.&lt;/p&gt;

&lt;p&gt;Once again, this patch fix the issue but there is maybe a better way to fix it to avoid the assignInheritanceValues() at each time.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10332" name="DC464TestCase.php" size="3293" author="colin.darie" created="Sat, 30 Jan 2010 02:51:11 +0000" />
                    <attachment id="10634" name="Record.php.patch" size="487" author="colin.darie" created="Wed, 9 Jun 2010 06:50:22 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-457] Generating YAML schema from DB breaks on certain table names</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-457</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;When attempting to reverse engineer databases using the generate-yaml-db task (via Symfony&apos;s doctrine:build-schema task), I&apos;ve run into some issues due to table names not being compatible with PHP classnames. It creates the PHP classes in /tmp, setting the class name to the same as the table name, and then attempts to build the YAML files off of those.&lt;/p&gt;

&lt;p&gt;I attempted to do this a few months ago and ran into issues because some of the table names began with numbers (&quot;123MyTable&quot; is not a valid PHP class name). My most recent attempt failed because of a table named &quot;List&quot;, which is a reserved PHP keyword.&lt;/p&gt;

&lt;p&gt;While I&apos;m not sure if this is the ideal solution, I think allowing a way to pre-define a prefix for the generated PHP class names would be great.&lt;/p&gt;</description>
                <environment>Linux, Symfony 1.4.1, Doctrine 1.2.1</environment>
            <key id="10788">DC-457</key>
            <summary>Generating YAML schema from DB breaks on certain table names</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/reopened.png">Reopened</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="ari">Ari Pringle</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Jan 2010 23:49:21 +0000</created>
                <updated>Wed, 17 Mar 2010 19:25:09 +0000</updated>
                                    <version>1.2.1</version>
                                                <component>Import/Export</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="11787" author="chipnet" created="Mon, 22 Feb 2010 11:43:36 +0000"  >&lt;p&gt;I think there seems to be a general problem in usage of table names, when using the generating from database to yml.&lt;/p&gt;

&lt;p&gt;I think there something changed with the naming stragegies in the last versions (I do not know in wich one), but it works with doctrine 1.0.10 (used in symfony 1.2.8).&lt;/p&gt;

&lt;p&gt;theoretical stragegies:&lt;br/&gt;
1. Only the first letter is a capital (e.g. ProjectCategory --&amp;gt; Projectcategory)&lt;br/&gt;
2. When a _ is inside the name, the _ is removed an a capital will used (e.g. Project_Values --&amp;gt; ProjectValues)&lt;/p&gt;

&lt;p&gt;But doctrine does not make use of this anymore. When I generate with doctrine 1.2.1 (used in symfony 1.3.2) my table ProjectCategory will be named as ProjectCategory in schema. And when the schema is wrong, all generated models are incompatible to older versions.&lt;/p&gt;
</comment>
                    <comment id="11911" author="jwage" created="Mon, 1 Mar 2010 18:08:05 +0000"  >&lt;p&gt;Hmm. I don&apos;t quite understand. I tested the things you described and it all works as I expected it to. You&apos;ll have to provide some more information.&lt;/p&gt;</comment>
                    <comment id="12312" author="ari" created="Wed, 17 Mar 2010 19:25:09 +0000"  >&lt;p&gt;Sorry for the delay in response.&lt;/p&gt;

&lt;p&gt;Here&apos;s how to reproduce my original issue (I should also mention that I&apos;m running PHP 5.2.4):&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;mysql&amp;gt; create table List (id &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; not &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; auto_increment,primary key(id));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;bash$ ./symfony doctrine:build-schema
&amp;gt;&amp;gt; doctrine  generating yaml schema from database

Parse error: syntax error, unexpected T_LIST, expecting T_STRING in /tmp/tmp_doctrine_models/List.php on line 17

bash$ sed -n &apos;17p&apos; /tmp/tmp_doctrine_models/List.php 
class List &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Doctrine_Record
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The same thing happens if the table name begins with a number (ie 123MyTable).&lt;/p&gt;

&lt;p&gt;Again, I&apos;m not sure if this is the ideal solution, but being able to define a prefix to the generated class names would take care of this issue (so the generated class name above could be MyPrefix_List instead of List)&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-422] Using the ON_DEMAND hydrator a warning a thrown on the last iterator of a foreach</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-422</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Used in a symfony project code similar to the following throws a warning on the last iteration of the foreach&lt;/p&gt;

&lt;p&gt;    $currentQuery = Doctrine_Query::create()&lt;br/&gt;
            -&amp;gt;from(&apos;article a&apos;);&lt;/p&gt;

&lt;p&gt;    $result = $currentQuery-&amp;gt;execute(array(), Doctrine_Core::HYDRATE_ON_DEMAND);&lt;/p&gt;

&lt;p&gt;    foreach ($result as $article) &lt;/p&gt;
{
      echo $article-&amp;gt;getId();
    }


&lt;p&gt;The warnings are  located in the connection profiler.&lt;/p&gt;

&lt;p&gt;symfony-1.4/lib/plugins/sfDoctrinePlugin/lib/database/sfDoctrineConnectionProfiler.class.php on line 196&lt;/p&gt;

&lt;p&gt;Warning: join(): Invalid arguments passed in symfony-1.4/lib/plugins/sfDoctrinePlugin/lib/database/sfDoctrineConnectionProfiler.class.php on line 141&lt;/p&gt;

&lt;p&gt;I&apos;m unsure how best to fix it. As far as I can tell there is an issue regarding the call to the iterator rewind at the end of the foreach. &lt;/p&gt;

&lt;p&gt;Doctrine_Connection_Statement-&amp;gt;execute(???) symfony-1.4/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Collection/OnDemand.php:71&lt;/p&gt;</description>
                <environment>os x 10.6, php 5.3.1</environment>
            <key id="10720">DC-422</key>
            <summary>Using the ON_DEMAND hydrator a warning a thrown on the last iterator of a foreach</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="arnaud">Arnaud Limbourg</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Jan 2010 13:04:33 +0000</created>
                <updated>Sun, 5 Dec 2010 07:50:19 +0000</updated>
                                    <version>1.2.1</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="11916" author="jwage" created="Mon, 1 Mar 2010 18:23:40 +0000"  >&lt;p&gt;Sorry, we&apos;re gonna need some more information to be able to do anything for this ticket.&lt;/p&gt;</comment>
                    <comment id="13201" author="jwage" created="Tue, 8 Jun 2010 15:20:55 +0000"  >&lt;p&gt;Is this issue a symfony one and not a Doctrine problem? It is hard to tell.&lt;/p&gt;</comment>
                    <comment id="14909" author="snpy" created="Sun, 5 Dec 2010 07:44:58 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;It&apos;s partially both - symfony doesn&apos;t protect itself from NULL params (default value), however when use Doctrine_Core::PORTABILITY_EMPTY_TO_NULL then Doctrine will also generate the same warning.&lt;/p&gt;

&lt;p&gt;Btw - symfony does throw this issue only when logging is enabled.&lt;/p&gt;

&lt;p&gt;This is a trace tail when when using OnDemand hydrator with foreach.&lt;/p&gt;

&lt;p&gt;21	1.1271	26883400	LessonTable-&amp;gt;copyTeacherData( )	../actions.class.php:54&lt;br/&gt;
22	1.1604	27817624	Doctrine_Collection_OnDemand-&amp;gt;rewind( )	../OnDemand.php:0&lt;br/&gt;
23	1.1604	27784376	Doctrine_Connection_Statement-&amp;gt;execute( )	../OnDemand.php:71&lt;br/&gt;
24	1.1605	27785616	Doctrine_EventListener_Chain-&amp;gt;preStmtExecute( )	../Statement.php:231&lt;br/&gt;
25	1.1605	27785616	sfDoctrineConnectionProfiler-&amp;gt;preStmtExecute( )	../Chain.php:494&lt;br/&gt;
26	1.1606	27788152	sfDoctrineConnectionProfiler::fixParams( )	../sfDoctrineConnectionProfiler.class.php:146&lt;/p&gt;

&lt;p&gt;Suggested patch attached.&lt;br/&gt;
We&apos;re always expecting $params parameter to be an array, hence array() as default value.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10886" name="Doctrine_Connection_Statement.patch" size="856" author="snpy" created="Sun, 5 Dec 2010 07:50:19 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-418] Inherited models creating NOT NULL restrictions on their parents</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-418</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;to reproduce, create the yaml included in sample.yaml (Note the not-null columns in each subclass)&lt;/p&gt;

&lt;p&gt;if you try to save an OnlineProduct without setting copyright_year, or if you create a print_product without setting website_branding_id, then you will get a not null error.&lt;br/&gt;
Inherited tables should be able to set their own NOT NULL columns without affecting other tables in the inheritance tree (should be handled in the preSave() method? or is there another mechanism?)&lt;/p&gt;</description>
                <environment>Linux skywalker-9 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux&lt;br/&gt;
</environment>
            <key id="10713">DC-418</key>
            <summary>Inherited models creating NOT NULL restrictions on their parents</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="jlukescott">luke scott</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Jan 2010 18:17:58 +0000</created>
                <updated>Mon, 11 Jan 2010 18:19:57 +0000</updated>
                                    <version>1.2.1</version>
                                                <component>Attributes</component>
                <component>Inheritance</component>
                <component>Record</component>
                <component>Schema Files</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="11365" author="jlukescott" created="Mon, 11 Jan 2010 18:19:57 +0000"  >&lt;p&gt;YAML format was destroyed during copy &amp;amp; paste!&lt;br/&gt;
I&apos;m attaching the sample yaml, instead of including it in the description&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10279" name="sample.yaml" size="911" author="jlukescott" created="Mon, 11 Jan 2010 18:19:57 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DC-354] Using BETWEEN operator with MySQL fails</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-354</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;When running this bit of code the query fails with the error &quot;Unknown aggregate alias: interval&quot;, and calling $q-&amp;gt;getSql() doesn&apos;t return anything.&lt;/p&gt;

&lt;p&gt;{{$q = Doctrine_Query::create()&lt;br/&gt;
  ...&lt;br/&gt;
  -&amp;gt;where(&apos;u.birthday BETWEEN date_sub(now(), interval 7 day) AND NOW()&apos;);}}&lt;/p&gt;

&lt;p&gt;I&apos;ve tried different variations in the where() clause with no luck. I am using all the other MySQL functions in another query here:&lt;br/&gt;
&lt;tt&gt;$q-&amp;gt;where(&apos;date(birthday) = date_sub(curdate(), interval 1 day)&apos;)&lt;/tt&gt;&lt;br/&gt;
so I don&apos;t believe that they are the problem.&lt;/p&gt;

&lt;p&gt;I would expect the BETWEEN operator to be recognized and work appropriately.&lt;/p&gt;</description>
                <environment>PHP 5.2.10&lt;br/&gt;
MySQL 5.1.37</environment>
            <key id="10604">DC-354</key>
            <summary>Using BETWEEN operator with MySQL fails</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="matt">Matt McKeon</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Dec 2009 13:38:09 +0000</created>
                <updated>Tue, 8 Jun 2010 16:34:36 +0000</updated>
                                    <version>1.1.4</version>
                                                <component>Query</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="13208" author="jwage" created="Tue, 8 Jun 2010 16:34:36 +0000"  >&lt;p&gt;BETWEEN is mysql specific, no?&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>