<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu Jun 20 06:04:19 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+DBAL+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+DBAL+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="25" total="25"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DBAL-544] Where&apos;s the Query::HYDRATE_BOTH constant? </title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-544</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In the documentation of the the ResultStatement::fetch() function says that we should use the Query::HYDRATE_* constants but that constant does not exist at least not in 2.3.4.&lt;/p&gt;

&lt;p&gt;Should I just use PDO::FETCH_BOTH? But if I change the driver to sqlite or whatever is it going to work well?&lt;/p&gt;
</description>
                <environment>Doctrine 2.3.4  DBAL + ORM, using Silex</environment>
            <key id="15043">DBAL-544</key>
            <summary>Where&apos;s the Query::HYDRATE_BOTH constant? </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="ocramius">Marco Pivetta</assignee>
                                <reporter username="jmontoya">Julio Montoya</reporter>
                        <labels>
                        <label>Query::HYDRATE_BOTH</label>
                    </labels>
                <created>Wed, 12 Jun 2013 18:01:54 +0000</created>
                <updated>Thu, 13 Jun 2013 08:21:44 +0000</updated>
                                    <version>2.3.4</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20553" author="ocramius" created="Wed, 12 Jun 2013 18:09:01 +0000"  >&lt;p&gt;Query constants are defined in AbstractQuery (superclass of the Query class) - see &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/2.3.4/lib/Doctrine/ORM/AbstractQuery.php#L45-L60&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/2.3.4/lib/Doctrine/ORM/AbstractQuery.php#L45-L60&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20554" author="jmontoya" created="Wed, 12 Jun 2013 18:14:13 +0000"  >&lt;p&gt;Hello Marco! Thanks for your fast answer! &lt;br/&gt;
Some comments: The constant HYDRATE_BOTH doesn&apos;t exist, at least not with that name. Documentation should be updated too.&lt;br/&gt;
Another thing I&apos;m obliged to use ORM to call a constant in DBAL? Not a problem for me because I need both &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>
                    <comment id="20555" author="ocramius" created="Wed, 12 Jun 2013 18:25:45 +0000"  >&lt;p&gt;Sorry, confused this one as an ORM issue. &lt;/p&gt;</comment>
                    <comment id="20556" author="ocramius" created="Wed, 12 Jun 2013 18:29:26 +0000"  >&lt;p&gt;Checked briefly - you should indeed use the `PDO::FETCH_*` constants.&lt;/p&gt;

&lt;p&gt;Can you link the document that contains the imprecision?&lt;/p&gt;</comment>
                    <comment id="20564" author="jmontoya" created="Wed, 12 Jun 2013 19:12:41 +0000"  >&lt;p&gt;This is the documentation in the fetch(), fetchAll() functions in DBAL:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Driver/ResultStatement.php#L61&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Driver/ResultStatement.php#L61&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For example, if I want to fetch an Object what should I use 1. or 2. ? I don&apos;t know if this have some implications in other drivers.&lt;/p&gt;

&lt;p&gt;1. $statement-&amp;gt;fetch(\Doctrine\ORM\Query::HYDRATE_OBJECT);&lt;br/&gt;
2. $statement-&amp;gt;fetch(PDO::FETCH_OBJ);&lt;/p&gt;

&lt;p&gt;An update to the documentation will be fine too:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/data-retrieval-and-manipulation.html#using-prepared-statements&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/data-retrieval-and-manipulation.html#using-prepared-statements&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;fetch($fetchMode)&lt;/p&gt;

&lt;p&gt;instead of &lt;/p&gt;

&lt;p&gt;fetch($fetchStyle)&lt;/p&gt;

&lt;p&gt;with a list of options (constants) ...&lt;/p&gt;

</comment>
                    <comment id="20565" author="jmontoya" created="Thu, 13 Jun 2013 08:21:44 +0000"  >&lt;p&gt;Working in a PR but first we need to define those constants ...&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/jmontoyaa/dbal/commit/d3a44589cdef6c146592eee2b2bd9f8907dadd1f&quot; class=&quot;external-link&quot;&gt;https://github.com/jmontoyaa/dbal/commit/d3a44589cdef6c146592eee2b2bd9f8907dadd1f&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-543] Oracle DSN pooled option in wrong place of TNS connect descriptor and missing in Oracle PDO driver</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-543</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The DBAL OCI8 driver places the &quot;(SERVER=POOLED)&quot; directive in the wrong place. To illustrate, when the &quot;pooled&quot; option is given to the driver options the following TNS connect descriptor is build:&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;
(
  DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=myhost)(PORT=1521)))
  (
    CONNECT_DATA=(SID=sales)
  )
  (
    SERVER=POOLED
  )
)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;However the correct TNS connect descriptor 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-java&quot;&gt;
(
  DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=myhost)(PORT=1521)))
  (
    CONNECT_DATA=(SID=sales)(SERVER=POOLED)
  )
)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Also, the pooled option is missing in the PDO Oracle driver.&lt;/p&gt;

&lt;p&gt;See this page for more info: &lt;a href=&quot;http://docs.oracle.com/cd/B28359_01/server.111/b28310/manproc004.htm&quot; class=&quot;external-link&quot;&gt;http://docs.oracle.com/cd/B28359_01/server.111/b28310/manproc004.htm&lt;/a&gt;&lt;/p&gt;</description>
                <environment>oci8 driver: wrong TNS connect descriptor&lt;br/&gt;
pdo_oci driver: missing pooled directive</environment>
            <key id="15041">DBAL-543</key>
            <summary>Oracle DSN pooled option in wrong place of TNS connect descriptor and missing in Oracle PDO driver</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="martijn">Martijn Evers</reporter>
                        <labels>
                    </labels>
                <created>Wed, 12 Jun 2013 14:01:29 +0000</created>
                <updated>Wed, 12 Jun 2013 14:01:29 +0000</updated>
                                                                    <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-464] MySQL fails when try to drop a primary index with Auto Increment</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-464</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When an update of schema tries to drop a primary key with &quot;auto increment&quot; property (example : @ORM\GeneratedValue(strategy=&quot;AUTO&quot;)), the execution will fail : it say : &lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt;                                                                                                                          &lt;br/&gt;
  An exception occurred while executing &apos;ALTER TABLE odesadicola DROP PRIMARY KEY&apos;:                                                                      &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: 1075 Incorrect table definition; there can be only one auto column and it must be defined as a key&lt;/p&gt;


&lt;p&gt;Apparently, this error occurs because Doctrine try to execute a &quot;drop primary key&quot; on a table and the resulting column of old primary key will be &quot;auto increment&quot;.&lt;/p&gt;

&lt;p&gt;The answer is to remove &quot;auto increment&quot; attribut of primary key column juste before try to drop the primary key itself.&lt;/p&gt;</description>
                <environment>Linux (ubuntu), PHP 5.3.10, MySQL 5.5.29, Symfony2 </environment>
            <key id="14693">DBAL-464</key>
            <summary>MySQL fails when try to drop a primary index with Auto Increment</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="darkelfe">Julien Rosset</reporter>
                        <labels>
                    </labels>
                <created>Thu, 14 Mar 2013 14:52:14 +0000</created>
                <updated>Thu, 14 Mar 2013 14:52:14 +0000</updated>
                                    <version>2.3.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-423] Type GUID = VARCHAR(255) on platforms that don&apos;t have a native GUID support</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-423</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I&apos;m using MySQL with entities that have GUID ids. Therefore I&apos;m using @ORM\Column(type=&quot;guid&quot;) for the ORM mapping. As MySQL does not have a native GUID data type, it gets mapped to type=&quot;string&quot; with a default length of 255 -&amp;gt; VARCHAR(255). I don&apos;t really understand why we don&apos;t limit the length to 36, which is the fixed length for GUIDs. You could even think about using CHAR(36) for MySQL.&lt;/p&gt;

&lt;p&gt;-&amp;gt; see Doctrine\DBAL\Platforms\AbstractPlatform -&amp;gt; getGuidTypeDeclarationSQL()&lt;/p&gt;</description>
                <environment></environment>
            <key id="14410">DBAL-423</key>
            <summary>Type GUID = VARCHAR(255) on platforms that don&apos;t have a native GUID support</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="amr">amr</reporter>
                        <labels>
                    </labels>
                <created>Fri, 25 Jan 2013 11:03:03 +0000</created>
                <updated>Fri, 25 Jan 2013 11:03:03 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-422] Wrong VARCHAR default length in SQLServerPlatform</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-422</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In SQLServerPlatform the default length for a VARCHAR declaration is set to &quot;255&quot;. But according to the SQLServer documentation from Microsoft the default length is &quot;1&quot;, if omitted in the declaration.&lt;br/&gt;
See remarks: &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms186939.aspx&quot; class=&quot;external-link&quot;&gt;http://msdn.microsoft.com/en-us/library/ms186939.aspx&lt;/a&gt;&lt;br/&gt;
Also the default length is hardcoded in the &quot;getVarcharTypeDeclarationSQLSnippet&quot; method which in my opinion should be evaluated through &quot;getVarcharDefaultLength&quot;.&lt;/p&gt;

&lt;p&gt;I don&apos;t exactly know if the current implementation is intended, otherwise it should be fixed. I would then create an PR if desired.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14407">DBAL-422</key>
            <summary>Wrong VARCHAR default length in SQLServerPlatform</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="deeky666">Steve M&#252;ller</reporter>
                        <labels>
                        <label>platform</label>
                        <label>sqlserver</label>
                        <label>sqlsrv</label>
                        <label>varchar</label>
                    </labels>
                <created>Thu, 24 Jan 2013 01:25:45 +0000</created>
                <updated>Thu, 24 Jan 2013 01:25:45 +0000</updated>
                                    <version>2.3.2</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-411] Schema updater breaks when using backticks in tablenames.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-411</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When using backticks around table-names (for example &quot;`Order`&quot;), the Doctrine schema update tool wants to recreate all foreign keys on every run.&lt;/p&gt;

&lt;p&gt;This error was introduced in commit cb3ec49cb4401bd1c8be6ba9671f651802586eaf&lt;/p&gt;</description>
                <environment>Debian Linux 6.0, PHP 5.3.3, MySQL 5.1.63</environment>
            <key id="14359">DBAL-411</key>
            <summary>Schema updater breaks when using backticks in tablenames.</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="endaco">Endaco</reporter>
                        <labels>
                        <label>schematool</label>
                    </labels>
                <created>Tue, 8 Jan 2013 11:24:46 +0000</created>
                <updated>Tue, 8 Jan 2013 11:24:46 +0000</updated>
                                    <version>2.3.2</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-406] PostgreSqlSchemaManager::tablesExist() misses schema-qualified table names if they exist in the first schema on the search path</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-406</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Please see &lt;a href=&quot;https://github.com/doctrine/migrations/issues/99&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/migrations/issues/99&lt;/a&gt; for additional background.&lt;/p&gt;

&lt;p&gt;To reproduce:&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;
CREATE SCHEMA test_schema;
CREATE TABLE test_schema.test_table (test_column TEXT);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then in Doctrine:&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: php.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt;
$connection-&amp;gt;executeUpdate(&apos;SET search_path=test_schema;&apos;);
$result = $connection-&amp;gt;getSchemaManager()-&amp;gt;tablesExist(array(&apos;test_schema.test_table&apos;));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;tt&gt;$result&lt;/tt&gt; is false when it should be true.&lt;/p&gt;

&lt;p&gt;The error occurs because &lt;tt&gt;PostgreSqlSchemaManager&lt;/tt&gt; returns the bare table name from &lt;tt&gt;getPortableTablesList()&lt;/tt&gt; if the schema is the first one in the search path.&lt;/p&gt;

&lt;p&gt;The full explanation is...&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;AbstractSchemaManager::tablesExist()&lt;/tt&gt; calls &lt;tt&gt;$this-&amp;gt;getPortableTablesList()&lt;/tt&gt; before checking if the tables exist.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;PostgreSqlSchemaManager&lt;/tt&gt; overrides this in &lt;tt&gt;_getPortableTableDefinition()&lt;/tt&gt;  by comparing the schema for the table with the search path for the connection. If the table schema is the first one in the search path, then it returns the bare table name, if it isn&apos;t then it returns the schema-qualified table name (i.e. schema.table).&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;tablesExist()&lt;/tt&gt; does an array_intersect to check that all the tables in the search array exist in the database.&lt;/p&gt;

&lt;p&gt;If one of the tables in the search array was schema-qualified but also in the first schema on the search path, then you end up checking:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;array_intersect(array(&apos;test_schema.test_table&apos;), array(&apos;test_table&apos;))&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;which fails.&lt;/p&gt;

&lt;p&gt;One way to fix it would be to override &lt;tt&gt;tablesExist()&lt;/tt&gt; in &lt;tt&gt;PostgreSqlSchemaManager&lt;/tt&gt; so that it passes the search array through &lt;tt&gt;getPortableTableDefinition()&lt;/tt&gt; before doing the array_intersect:&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: php.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt;
    /**
     * Return &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; all the given tables exist.
     *
     * @param array $tableNames
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; bool
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function tablesExist($tableNames)
    {
        foreach ($tableNames as $key =&amp;gt; $tableName) {
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (strpos($tableName, &apos;.&apos;) !== &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;) {
                $tableName = explode(&apos;.&apos;, $tableName, 2);
                $tableNames[$key] = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_getPortableTableDefinition(array(&apos;schema_name&apos;=&amp;gt;$tableName[0], &apos;table_name&apos;=&amp;gt;$tableName[1]));
            }
        }
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; parent::tablesExist($tableNames);
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;m happy to provide a PR on GitHub if you want.&lt;/p&gt;</description>
                <environment>Postgresql 9.1</environment>
            <key id="14352">DBAL-406</key>
            <summary>PostgreSqlSchemaManager::tablesExist() misses schema-qualified table names if they exist in the first schema on the search path</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="rhunwicks">Roger Hunwicks</reporter>
                        <labels>
                        <label>postgresql</label>
                    </labels>
                <created>Mon, 7 Jan 2013 08:33:41 +0000</created>
                <updated>Mon, 7 Jan 2013 08:33:41 +0000</updated>
                                    <version>2.3.1</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-400] can&apos;t add primary key to mysql table after the table is created</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-400</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;A table in this application had no primary keys. I created an entity&lt;br/&gt;
so i could attempt to use the doctrine:schema:update command to fix it up.&lt;/p&gt;

&lt;p&gt;When i attempted to add this:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;@ORM\Id&lt;/li&gt;
	&lt;li&gt;@ORM\GeneratedValue(strategy=&quot;NONE&quot;)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;to this:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@ORM\Column(name=&quot;session_id&quot;, type=&quot;string&quot;, length=128,&lt;br/&gt;
nullable=false)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;it generates SQL like this:&lt;/p&gt;
 &lt;blockquote&gt;
&lt;p&gt;ALTER TABLE whos_online DROP INDEX idx_session_id_zen, ADD UNIQUE INDEX primary (session_id);&lt;br/&gt;
ALTER TABLE whos_online CHANGE ip_address ip_address VARCHAR(45) NOT NULL, CHANGE host_address host_address VARCHAR(512) NOT NULL;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;and says this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;  An exception occurred while executing &apos;ALTER TABLE whos_online DROP INDEX idx_session_id_zen, ADD UNIQUE INDEX primary (session_id  );                                                     &lt;br/&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  &lt;br/&gt;
   your MySQL server version for the right syntax to use near &apos;primary (session_id)&apos; at line 1  &lt;/p&gt;&lt;/blockquote&gt; </description>
                <environment></environment>
            <key id="14327">DBAL-400</key>
            <summary>can&apos;t add primary key to mysql table after the table is created</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jrobeson">John Robeson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 20 Dec 2012 06:59:04 +0000</created>
                <updated>Thu, 20 Dec 2012 07:08:06 +0000</updated>
                                                                    <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-375] Warning &quot;Udefined index dbname&quot; while creating database with oci8 driver</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-375</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In config specified:&lt;/p&gt;

&lt;p&gt;doctrine:&lt;br/&gt;
    dbal:&lt;br/&gt;
        driver:   &quot;oci8&quot;&lt;br/&gt;
        host:     &quot;localhost&quot;&lt;br/&gt;
        port:     &quot;1521&quot;&lt;br/&gt;
        dbname:   &quot;orcl50&quot;&lt;br/&gt;
        user:     &quot;SYSTEM&quot;&lt;br/&gt;
        password: &quot;123456&quot;&lt;br/&gt;
        charset:  UTF8&lt;/p&gt;

&lt;p&gt;When i create database (with symfony 2, doctrine:database:create), got that error:&lt;/p&gt;

&lt;p&gt;=====================================&lt;br/&gt;
Could not create database for connection named orcl50&lt;br/&gt;
Notice: Undefined index: dbname in /path/to/symfony/vendor/doctrine-dbal/lib/Doctrine/DBAL/Driver/OCI8/Driver.php line 67&lt;br/&gt;
=====================================&lt;/p&gt;

&lt;p&gt;If i comment &quot;unset($params&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;dbname&amp;#39;&amp;#93;&lt;/span&gt;)&quot; in CreateDatabaseDoctrineCommand.php:54 all works fine.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14178">DBAL-375</key>
            <summary>Warning &quot;Udefined index dbname&quot; while creating database with oci8 driver</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="pavelpat">pavel patrin</reporter>
                        <labels>
                        <label>dbname</label>
                        <label>oci8</label>
                    </labels>
                <created>Wed, 31 Oct 2012 11:02:32 +0000</created>
                <updated>Sat, 20 Apr 2013 08:48:22 +0000</updated>
                                    <version>2.2.2</version>
                <version>2.3.1</version>
                                                <component>Drivers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18976" author="krisw" created="Tue, 13 Nov 2012 11:19:10 +0000"  >&lt;p&gt;I&apos;m experiencing the same issue and your fix appears to work for me too; thanks!&lt;/p&gt;</comment>
                    <comment id="20075" author="beberlei" created="Sat, 20 Apr 2013 08:48:22 +0000"  >&lt;p&gt;on Oracle CREATE DATABASE is actually a CREATE USER. I am not sure the command should allow to do this.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-373] Indexes and uniqueConstraints has been ignored</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-373</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I using the Doctrine Migrations and when I declared my entity with the indexes section, the index name has been ignored. It&apos;s like this:&lt;/p&gt;

&lt;p&gt;indexes:&lt;br/&gt;
        IDX_ADDRESS_CITY:&lt;br/&gt;
            columns: city_id&lt;/p&gt;


&lt;p&gt;but, the diff tools ignore it and give me this code:&lt;br/&gt;
$this-&amp;gt;addSql(&quot;CREATE INDEX IDX_7299B5238BAC62AF ON tb_address (city_id)&quot;);&lt;/p&gt;

&lt;p&gt; and it should be:&lt;br/&gt;
$this-&amp;gt;addSql(&quot;CREATE INDEX IDX_ADDRESS_CITY ON tb_address (city_id)&quot;);&lt;/p&gt;

&lt;p&gt;Notice: I open the same bug on the migrations repository in github and @kimhemsoe told me to open here, since this is generated by DBAL component.&lt;/p&gt;</description>
                <environment>Ubuntu 12.04 with MySQL 5.5 and PHP 5.4</environment>
            <key id="14171">DBAL-373</key>
            <summary>Indexes and uniqueConstraints has been ignored</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="10000" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="diegoholiveira">Diego Oliveira</reporter>
                        <labels>
                    </labels>
                <created>Fri, 26 Oct 2012 16:49:05 +0000</created>
                <updated>Sat, 20 Apr 2013 09:53:26 +0000</updated>
                                                                    <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="19123" author="posulliv" created="Tue, 11 Dec 2012 22:07:56 +0000"  >&lt;p&gt;Did you specify an index name in the indexes property for your entity in  your PHP file? In this case, you should have something 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;
indexes={@Index(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;IDX_ADDRESS_CITY&quot;&lt;/span&gt;, columns={&lt;span class=&quot;code-quote&quot;&gt;&quot;city_id&quot;&lt;/span&gt;})}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;That should result in the correct SQL being generated. If I modify the above 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;
indexes={@Index(columns={&lt;span class=&quot;code-quote&quot;&gt;&quot;city_id&quot;&lt;/span&gt;})}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I also get a migration that has SQL with an auto-generated index name.&lt;/p&gt;</comment>
                    <comment id="19449" author="diegoholiveira" created="Sat, 2 Feb 2013 16:28:56 +0000"  >&lt;p&gt;Yes I did specify a name, as you can see:&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;uniqueConstraints:
    UNIQUE_STATE_SLUG:
        columns: slug
indexes:
    IDX_USER_ADDRESS:
        columns: address_id
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;I don&apos;t try do to it using annotations because I choose do use yaml to describe my entities. I will take a look on the source code to see if I can fix it and send a PR.&lt;/p&gt;</comment>
                    <comment id="19930" author="diegoholiveira" created="Tue, 2 Apr 2013 12:45:40 +0000"  >&lt;p&gt;I already sent this patch to Guilherme Blanco, but I guess he doesn&apos;t have time to take a look on it.&lt;/p&gt;

&lt;p&gt;I guess my solution it&apos;s not ideal, but it solve the problem and can be a base to make a better solution.&lt;/p&gt;</comment>
                    <comment id="20076" author="beberlei" created="Sat, 20 Apr 2013 08:50:54 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=diegoholiveira&quot; class=&quot;user-hover&quot; rel=&quot;diegoholiveira&quot;&gt;Diego Oliveira&lt;/a&gt; the fix doesn&apos;t seem too nice with the additional boolean flag.&lt;/p&gt;

&lt;p&gt;I would rather like to fix the root cause instead of adding this solution.&lt;/p&gt;</comment>
                    <comment id="20077" author="beberlei" created="Sat, 20 Apr 2013 09:53:26 +0000"  >&lt;p&gt;The issue is tricky, because we cannot just move the index definitions above, they will need the columns, however that directly generates the index in the schema tool. Maybe if the gather join column methods would check if they can add an index already it would work.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11522" name="dbal-fixing-373.patch" size="3754" author="diegoholiveira" created="Tue, 2 Apr 2013 12:45:40 +0000" />
                    <attachment id="11523" name="orm-fixing-373.patch" size="1977" author="diegoholiveira" created="Tue, 2 Apr 2013 12:45:40 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-372] Add SQL parser</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-372</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;It is useful for create sql highlighter. See &lt;a href=&quot;https://github.com/doctrine/DoctrineBundle/pull/117&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/DoctrineBundle/pull/117&lt;/a&gt; or &lt;a href=&quot;https://github.com/doctrine/DoctrineBundle/issues/107&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/DoctrineBundle/issues/107&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14168">DBAL-372</key>
            <summary>Add SQL parser</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="hason">Martin Haso&#328;</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Oct 2012 12:52:32 +0000</created>
                <updated>Thu, 25 Oct 2012 12:52:51 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-352] Running doctrine:schema:update throws an exception the first time, succeeds the second time.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-352</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Shell output from my symfony project:&lt;br/&gt;
 $ app/console doctrine:schema:update --force&lt;br/&gt;
 Updating database schema...&lt;/p&gt;

&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt;&lt;br/&gt;
  An exception occurred while executing &apos;ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F07D3656A4 FOREIGN KEY (account) REFERENCES Account (id)&apos;:&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: 1072 Key column &apos;account&apos; doesn&apos;t exist in table&lt;/p&gt;

&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;PDOException&amp;#93;&lt;/span&gt;&lt;br/&gt;
  SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: Syntax error or access violation: 1072 Key column &apos;account&apos; doesn&apos;t exist in table&lt;/p&gt;

&lt;p&gt; doctrine:schema:update &lt;span class=&quot;error&quot;&gt;&amp;#91;--complete&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;--dump-sql&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;--force&amp;#93;&lt;/span&gt; [--em&lt;span class=&quot;error&quot;&gt;&amp;#91;=&amp;quot;...&amp;quot;&amp;#93;&lt;/span&gt;]&lt;/p&gt;

&lt;p&gt; $ app/console doctrine:schema:update --force&lt;br/&gt;
 Updating database schema...&lt;br/&gt;
 Database schema updated successfully! &quot;7&quot; queries were executed&lt;br/&gt;
 $&lt;/p&gt;</description>
                <environment></environment>
            <key id="14065">DBAL-352</key>
            <summary>Running doctrine:schema:update throws an exception the first time, succeeds the second time.</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="hexmode">Mark A. Hershberger</reporter>
                        <labels>
                    </labels>
                <created>Tue, 25 Sep 2012 13:27:26 +0000</created>
                <updated>Tue, 25 Sep 2012 14:35:32 +0000</updated>
                                                                    <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18724" author="stof" created="Tue, 25 Sep 2012 13:52:11 +0000"  >&lt;p&gt;Please run the command with the &lt;tt&gt;&amp;#45;&amp;#45;dump&amp;#45;sql&lt;/tt&gt; option instead of &lt;tt&gt;&amp;#45;&amp;#45;force&lt;/tt&gt; each time before launching it for real, to be able to see which SQL queries are executed in both cases&lt;/p&gt;</comment>
                    <comment id="18725" author="hexmode" created="Tue, 25 Sep 2012 14:07:52 +0000"  >&lt;p&gt;I&apos;m not sure how to roll back the changes so that I can reproduce this.&lt;/p&gt;</comment>
                    <comment id="18726" author="hexmode" created="Tue, 25 Sep 2012 14:18:47 +0000"  >&lt;p&gt;Got it after a little poking around with git.  Rolling back to a commit in my code before the one given here didn&apos;t didn&apos;t show this reproduce this.&lt;/p&gt;


&lt;p&gt;$ php app/console doctrine:schema:create        &lt;br/&gt;
ATTENTION: This operation should not be executed in a production environment.&lt;/p&gt;

&lt;p&gt;Creating database schema...&lt;br/&gt;
Database schema created successfully!&lt;/p&gt;

&lt;p&gt;$ git checkout d686a39fb664dca540167e1b3e96ea0ffd67bc00&lt;br/&gt;
Previous HEAD position was 0510a59... * First round of Customer-to-Accounts (1:n) mapping done * Start of Customer-to-Tn and Tn-to-Account mapping&lt;br/&gt;
HEAD is now at d686a39... * A little debugging for Entity::Customer::hasEntitlement * Add FK for Customer to Tn&lt;/p&gt;

&lt;p&gt;$ php app/console doctrine:schema:update --dump-sql    &lt;br/&gt;
ALTER TABLE Account CHANGE guid guid VARCHAR(255) NOT NULL;&lt;br/&gt;
ALTER TABLE Tn DROP FOREIGN KEY FK_3504C6F09B6B5FBA;&lt;br/&gt;
DROP INDEX IDX_3504C6F09B6B5FBA ON Tn;&lt;br/&gt;
ALTER TABLE Tn ADD tnType VARCHAR(10) NOT NULL, CHANGE account_id customer INT DEFAULT NULL;&lt;br/&gt;
ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F07D3656A4 FOREIGN KEY (account) REFERENCES Account (id);&lt;br/&gt;
ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F081398E09 FOREIGN KEY (customer) REFERENCES Customer (id);&lt;br/&gt;
CREATE INDEX IDX_3504C6F07D3656A4 ON Tn (account);&lt;br/&gt;
CREATE INDEX IDX_3504C6F081398E09 ON Tn (customer);&lt;br/&gt;
ALTER TABLE Customer CHANGE guid guid VARCHAR(255) NOT NULL, CHANGE authGuid authGuid VARCHAR(255) NOT NULL&lt;br/&gt;
mah@debian:~/comcast$ php app/console doctrine:schema:update --force       &lt;br/&gt;
Updating database schema...&lt;/p&gt;

&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt;          &lt;br/&gt;
  An exception occurred while executing &apos;ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F07D3656A4 FOREIGN KEY (account)&lt;br/&gt;
  REFERENCES Account (id)&apos;:&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: 1072 Key column &apos;account&apos; doesn&apos;t exist in table&lt;/p&gt;

&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;PDOException&amp;#93;&lt;/span&gt;                                                                                       &lt;br/&gt;
  SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: Syntax error or access violation: 1072 Key column &apos;account&apos; doesn&apos;t exist in table  &lt;/p&gt;

&lt;p&gt;doctrine:schema:update &lt;span class=&quot;error&quot;&gt;&amp;#91;--complete&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;--dump-sql&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;--force&amp;#93;&lt;/span&gt; [--em&lt;span class=&quot;error&quot;&gt;&amp;#91;=&amp;quot;...&amp;quot;&amp;#93;&lt;/span&gt;]&lt;/p&gt;


&lt;p&gt;$ php app/console doctrine:schema:update --dump-sql&lt;br/&gt;
ALTER TABLE Account CHANGE guid guid VARCHAR(255) NOT NULL;&lt;br/&gt;
ALTER TABLE Tn ADD account INT DEFAULT NULL;&lt;br/&gt;
ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F07D3656A4 FOREIGN KEY (account) REFERENCES Account (id);&lt;br/&gt;
ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F081398E09 FOREIGN KEY (customer) REFERENCES Customer (id);&lt;br/&gt;
CREATE INDEX IDX_3504C6F07D3656A4 ON Tn (account);&lt;br/&gt;
CREATE INDEX IDX_3504C6F081398E09 ON Tn (customer);&lt;br/&gt;
ALTER TABLE Customer CHANGE guid guid VARCHAR(255) NOT NULL, CHANGE authGuid authGuid VARCHAR(255) NOT NULL&lt;/p&gt;

&lt;p&gt;$ php app/console doctrine:schema:update --force   &lt;br/&gt;
Updating database schema...&lt;br/&gt;
Database schema updated successfully! &quot;7&quot; queries were executed&lt;/p&gt;

&lt;p&gt;$ &lt;/p&gt;</comment>
                    <comment id="18728" author="stof" created="Tue, 25 Sep 2012 14:35:32 +0000"  >&lt;p&gt;hmm, the first update seems to miss the addition of the account field, which is done the second time through &lt;tt&gt;ALTER TABLE Tn ADD account INT DEFAULT NULL;&lt;/tt&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-319] Doctrine\DBAL\Types\Type</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-319</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The API could be improved in the next major release:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Type::add() instead of addType()&lt;/li&gt;
	&lt;li&gt;Type::isRegistered() instead of hasType() (has sounds weird)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Etc.. I think the &apos;type&apos; in the methods is redundant since Type is already the object I am dealing with.&lt;/p&gt;

&lt;p&gt;I&apos;d also like a remove() method to unregister a type at runtime. Would make testing a little easier and I don&apos;t have to check with hasType() etc..&lt;/p&gt;</description>
                <environment></environment>
            <key id="13960">DBAL-319</key>
            <summary>Doctrine\DBAL\Types\Type</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="till">Till</reporter>
                        <labels>
                    </labels>
                <created>Sun, 12 Aug 2012 18:03:54 +0000</created>
                <updated>Sun, 12 Aug 2012 18:34:28 +0000</updated>
                                    <version>2.2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18485" author="ocramius" created="Sun, 12 Aug 2012 18:11:07 +0000"  >&lt;p&gt;I don&apos;t think those namings are really important.&lt;br/&gt;
There&apos;s one major change to do, which is to somehow get rid of the staticness of the `Doctrine\DBAL\Types\Type` class, and it is not a simple task.&lt;br/&gt;
It would also be interesting to set the type objects manually, such as a database `password` type that does encryption/decryption based on a given service. That cannot be done without staticness right now, which renders two different connections requiring the same functionality but with different parameters very difficult.&lt;/p&gt;</comment>
                    <comment id="18486" author="till" created="Sun, 12 Aug 2012 18:34:28 +0000"  >&lt;p&gt;I agree on the static. But I&apos;d also like the API to be cleaned up and the remove method.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-318] getSQLDeclaration</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-318</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Types/Type.php#L119-L125&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Types/Type.php#L119-L125&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Should define a @return type. Otherwise you have to step through other types to figure this out.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13959">DBAL-318</key>
            <summary>getSQLDeclaration</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="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/inprogress.png">In Progress</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="till">Till</reporter>
                        <labels>
                    </labels>
                <created>Sun, 12 Aug 2012 18:01:26 +0000</created>
                <updated>Sun, 19 Aug 2012 22:36:37 +0000</updated>
                                    <version>2.2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18529" author="stof" created="Sun, 19 Aug 2012 22:19:48 +0000"  >&lt;p&gt;Already fixed in master&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-297] PDO::PARAM_LOB (value=3) overlaps with PDO::FETCH_NUM (value=3) in OCI8Statement::$fetchModeMap</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-297</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;In OCI8Statement, using PDO::FETCH_NUM does not work because the fetch style mapping is overwritten by PDO::PARAM_LOB since the two has the same value (3);&lt;/p&gt;

&lt;p&gt;protected static $fetchModeMap = array(&lt;br/&gt;
        PDO::FETCH_BOTH =&amp;gt; OCI_BOTH,&lt;br/&gt;
        PDO::FETCH_ASSOC =&amp;gt; OCI_ASSOC,&lt;br/&gt;
        PDO::FETCH_NUM =&amp;gt; OCI_NUM,&lt;br/&gt;
        PDO::PARAM_LOB =&amp;gt; OCI_B_BLOB,&lt;br/&gt;
        PDO::FETCH_COLUMN =&amp;gt; OCI_NUM,&lt;br/&gt;
);&lt;/p&gt;

&lt;p&gt;so PDO::FETCH_NUM is mapped to OCI_B_BLOB&lt;/p&gt;</description>
                <environment>N/A</environment>
            <key id="13820">DBAL-297</key>
            <summary>PDO::PARAM_LOB (value=3) overlaps with PDO::FETCH_NUM (value=3) in OCI8Statement::$fetchModeMap</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="char101">Charles Gunawan</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Jul 2012 08:13:31 +0000</created>
                <updated>Thu, 5 Jul 2012 08:13:31 +0000</updated>
                                                                    <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-293] mysql platform can not choose text type column</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-293</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;getVarcharMaxLength() in DBAL/Platforms/MySqlPlatform.php returns 65535;&lt;br/&gt;
So, it never choose &quot;text&quot;, choose &quot;mediumtext&quot;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13790">DBAL-293</key>
            <summary>mysql platform can not choose text type column</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="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/inprogress.png">In Progress</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="shirokappa">Kiichi Kajiura</reporter>
                        <labels>
                    </labels>
                <created>Wed, 20 Jun 2012 14:40:48 +0000</created>
                <updated>Sat, 8 Sep 2012 19:51:48 +0000</updated>
                                    <version>2.2.2</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18211" author="beberlei" created="Thu, 5 Jul 2012 21:12:32 +0000"  >&lt;p&gt;How do you call the schema/platform code?&lt;/p&gt;

&lt;p&gt;The code is correct, i think you are using it wrong.&lt;/p&gt;</comment>
                    <comment id="18336" author="shirokappa" created="Thu, 19 Jul 2012 03:54:18 +0000"  >&lt;p&gt;I don&apos;t use it directly.&lt;br/&gt;
I use it in my entity class file with annotations.&lt;br/&gt;
e.g. &lt;br/&gt;
    @Mapping\Column(type=&quot;text&quot;)&lt;br/&gt;
    @Mapping\Column(type=&quot;text&quot;, length=65535)&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-292] Multiple use of named parameter doesn&apos;t work</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-292</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In the example in the documentation &lt;a href=&quot;http://doctrine-dbal.readthedocs.org/en/2.0.x/reference/data-retrieval-and-manipulation.html#dynamic-parameters-and-prepared-statements&quot; class=&quot;external-link&quot;&gt;http://doctrine-dbal.readthedocs.org/en/2.0.x/reference/data-retrieval-and-manipulation.html#dynamic-parameters-and-prepared-statements&lt;/a&gt;  there is the following example:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$sql = &quot;SELECT * FROM users WHERE name = :name OR username = :name&quot;;&lt;br/&gt;
$stmt = $conn-&amp;gt;prepare($sql);&lt;br/&gt;
$stmt-&amp;gt;bindValue(&quot;name&quot;, $name);&lt;br/&gt;
$stmt-&amp;gt;execute();&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;When I try this example using pdo_sqlsrv I get the following error: &lt;br/&gt;
PDOException: SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;07002&amp;#93;&lt;/span&gt;: &lt;span class=&quot;error&quot;&gt;&amp;#91;Microsoft&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;SQL Server Native Client 11.0&amp;#93;&lt;/span&gt;COUNT field incorrect or syntax error&lt;/p&gt;

&lt;p&gt;When I use instead the parameters name1 and name2 the query works as expected.&lt;/p&gt;</description>
                <environment>IIS 7.5, MS-SQL-Server 2005, PHP 5.4.0</environment>
            <key id="13778">DBAL-292</key>
            <summary>Multiple use of named parameter doesn&apos;t work</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="10000" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jue">J&#252;rgen</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Jun 2012 18:31:19 +0000</created>
                <updated>Wed, 23 Jan 2013 22:56:54 +0000</updated>
                                    <version>2.2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18223" author="asm89" created="Sat, 7 Jul 2012 14:44:39 +0000"  >&lt;p&gt;Are you sure you were using the 2.2.2 version of the ORM? Can you try to reproduce this with the latest master?&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-209] fetchAll should include $types array for executeQuery</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-209</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The fetchAll function should include a $types parameter since it is utilizing executeQuery.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13385">DBAL-209</key>
            <summary>fetchAll should include $types array for executeQuery</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="tekmosis">Jamie Taniguchi</reporter>
                        <labels>
                    </labels>
                <created>Wed, 25 Jan 2012 01:06:41 +0000</created>
                <updated>Sat, 29 Dec 2012 17:31:21 +0000</updated>
                                    <version>2.2.0-RC3</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19193" author="nemek_zg" created="Sat, 29 Dec 2012 17:31:21 +0000"  >&lt;p&gt;A proposed fix is available with the following pull request: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/240&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/240&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-180] Documentation states that Doctrine &apos;decimal&apos; (DecimalType) is mapped to PHP &apos;double&apos;, however, string is returned</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-180</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;At &lt;a href=&quot;http://www.doctrine-project.org/docs/orm/2.1/en/reference/basic-mapping.html#doctrine-mapping-types&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/docs/orm/2.1/en/reference/basic-mapping.html#doctrine-mapping-types&lt;/a&gt;, it is stated that:&lt;/p&gt;

&lt;p&gt;&quot;decimal: Type that maps an SQL DECIMAL to a PHP double.&quot;&lt;/p&gt;

&lt;p&gt;However, in the commit history, we can see that the casting to a float is removed: &lt;a href=&quot;https://github.com/doctrine/dbal/commits/master/lib/Doctrine/DBAL/Types/DecimalType.php&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commits/master/lib/Doctrine/DBAL/Types/DecimalType.php&lt;/a&gt;. Casting to a double is not possible in PHP?This seems to result in a float as well, that is probably why it was removed.&lt;/p&gt;

&lt;p&gt;I found this out when using PHP&apos;s &apos;is_double()&apos; function (alias of is_float()) to check whether a decimal property was set or not. &lt;/p&gt;

&lt;p&gt;Suggestion is to either:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;cast to a double (which seems not possible)&lt;/li&gt;
	&lt;li&gt;cast to a float (why was this removed?)&lt;/li&gt;
	&lt;li&gt;do nothing to the code, update documentation that string is returned.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;In my check function I guess I will use the is_numeric() function. &lt;/p&gt;</description>
                <environment></environment>
            <key id="13171">DBAL-180</key>
            <summary>Documentation states that Doctrine &apos;decimal&apos; (DecimalType) is mapped to PHP &apos;double&apos;, however, string is returned</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="holtkamp">Menno Holtkamp</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Nov 2011 15:01:32 +0000</created>
                <updated>Thu, 20 Dec 2012 00:31:46 +0000</updated>
                                    <version>2.1.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="17623" author="roelharbers" created="Mon, 19 Mar 2012 16:10:01 +0000"  >&lt;p&gt;I would strongly suggest to leave the behaviour as-is, and fix the documentation, because of all the trouble associated with floating point and rounding. People use the DECIMAL type to prevent those issues, so having the ORM convert it to floating point again would be pretty bad.&lt;/p&gt;</comment>
                    <comment id="17887" author="pmcdougl" created="Thu, 26 Apr 2012 19:31:35 +0000"  >&lt;p&gt;I have submitted a pull request on this issue on github. Hopefully the doc will be updated soon so other people don&apos;t expect the wrong behavior!&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/orm-documentation/pull/93&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/orm-documentation/pull/93&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Mods, this issue can probably be closed.&lt;/p&gt;</comment>
                    <comment id="17981" author="deatheriam" created="Thu, 24 May 2012 19:18:16 +0000"  >&lt;p&gt;Leaving decimal values as strings creates another issue with unnecessary entity updates because old and new same values have different types: old value is always the string type, the new one - decimal. If an old value is &apos;10.00&apos; as a string and the new value is 10 decimal than Doctrine will issue the UPDATE statement for that entity. This is plainly wrong IMHO.&lt;/p&gt;</comment>
                    <comment id="19158" author="verkestk" created="Thu, 20 Dec 2012 00:31:46 +0000"  >&lt;p&gt;There may be other issues around comparison.  I&apos;d rather be comparing numeric types than strings when comparing &quot;decimal&quot; values.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-179] SQLLogger API improvement: log rows affected</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-179</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;A small suggestion.  It is useful in our application to log the affected rows in queries in order to make it easier to trace what queries did what.  I think a simple way to enable this in the SQLLogger is to modify the stopQuery() interface to receive an option rowcount parameter.&lt;/p&gt;
</description>
                <environment></environment>
            <key id="13170">DBAL-179</key>
            <summary>SQLLogger API improvement: log rows affected</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="redemption">Howard Ha</reporter>
                        <labels>
                    </labels>
                <created>Thu, 10 Nov 2011 11:20:25 +0000</created>
                <updated>Thu, 10 Nov 2011 11:20:25 +0000</updated>
                                    <version>2.1.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-175] Table comments in Doctrine\DBAL\Schema\Table Object</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-175</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Should be useful discover the table comments from database schema.&lt;/p&gt;

&lt;p&gt;This feature is already available for column comments, but not for table comments&lt;/p&gt;</description>
                <environment></environment>
            <key id="13059">DBAL-175</key>
            <summary>Table comments in Doctrine\DBAL\Schema\Table Object</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="goetas">Asmir Mustafic</reporter>
                        <labels>
                    </labels>
                <created>Thu, 6 Oct 2011 10:16:13 +0000</created>
                <updated>Mon, 17 Oct 2011 07:03:10 +0000</updated>
                                                                    <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-167] Schema comparator doesn&apos;t work properly with columnDefinition&apos;s</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-167</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Schema comparator will mostly always return changed properties on columns for entities defined with &lt;em&gt;columnDefinition&lt;/em&gt; even they are identical in the DB. This is due to weak low-lever compatibility of &lt;em&gt;SchemaTool#getCreateSchemaSql()&lt;/em&gt; and &lt;em&gt;SchemaTool#getSchemaFromMetadata()&lt;/em&gt; &amp;#8211; the first one doesn&apos;t reconstruct &lt;em&gt;columnDefinition&lt;/em&gt;, and the other one never supports &lt;em&gt;&apos;fixed&apos;&lt;/em&gt;, &lt;em&gt;&apos;default&apos;&lt;/em&gt;, cannot determine, whether it is &lt;em&gt;boolean&lt;/em&gt; or &lt;em&gt;integer&lt;/em&gt; (ex. TINYINT in the DB), etc...&lt;/p&gt;

&lt;p&gt;All this results in extremely annoying unnecessary alter-table-change-columns surrounded by dropping and after that re-enabling constrains dependent on those columns.&lt;/p&gt;

&lt;p&gt;I mean stuff like this:&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;symfony2#app/console doctrine:schema:update --dump-sql&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;...
ALTER TABLE es_hotels DROP FOREIGN KEY FK_527F88EE584598A3F92F3E70;
ALTER TABLE es_hotels DROP FOREIGN KEY FK_527F88EE584598A37A3ABE5D;
ALTER TABLE es_hotels DROP FOREIGN KEY FK_527F88EE584598A3EE551564;
ALTER TABLE es_hotels CHANGE is_active is_active TINYINT(1) NOT NULL DEFAULT &apos;1&apos;, CHANGE checksum checksum CHAR(32) DEFAULT NULL;
ALTER TABLE es_hotels ADD CONSTRAINT FK_527F88EE584598A3F92F3E70 FOREIGN KEY (operator_id, country_id) REFERENCES es_countries(operator_id, id) ON DELETE CASCADE;
ALTER TABLE es_hotels ADD CONSTRAINT FK_527F88EE584598A37A3ABE5D FOREIGN KEY (operator_id, resort_id) REFERENCES es_resorts(operator_id, id) ON DELETE CASCADE;
ALTER TABLE es_hotels ADD CONSTRAINT FK_527F88EE584598A3EE551564 FOREIGN KEY (operator_id, subresort_id) REFERENCES es_subresorts(operator_id, id) ON DELETE CASCADE;
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The simple solution would be to fix schema comparator not to signal any changes on columns with &lt;em&gt;columnDefinition&lt;/em&gt; properties. &lt;br/&gt;
But would be much and much better to add some code to all &lt;em&gt;*SchemaManager#getPortableTableColumnDefinition&lt;/em&gt; so they would reconstuct &lt;em&gt;columnDefinition&lt;/em&gt; and they would be matched in the schema comparator. &lt;/p&gt;

&lt;p&gt;I can do this &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;</description>
                <environment></environment>
            <key id="13023">DBAL-167</key>
            <summary>Schema comparator doesn&apos;t work properly with columnDefinition&apos;s</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="strygin">Dmitry Strygin</reporter>
                        <labels>
                    </labels>
                <created>Sat, 17 Sep 2011 23:38:42 +0000</created>
                <updated>Mon, 16 Jul 2012 06:57:07 +0000</updated>
                                    <version>2.0.8</version>
                <version>2.1</version>
                <version>2.1.1</version>
                <version>2.1.2</version>
                                                <component>Drivers</component>
                <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>2</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="16636" author="roderick" created="Sun, 16 Oct 2011 13:58:19 +0000"  >&lt;p&gt;I&apos;m having the same issue on my production webserver, but not on the development webserver. I find that odd. It tries to drop all foreign keys and create them again, although without the CHANGE statement you are referring to, Dmitry.&lt;/p&gt;</comment>
                    <comment id="17206" author="beberlei" created="Mon, 9 Jan 2012 14:33:26 +0000"  >&lt;p&gt;This maybe fixable by making a hash out of the column definition and saving it into a database comment.&lt;/p&gt;

&lt;p&gt;The Foreign Key problem maybe because of an old MySQL version 5.0.x&lt;/p&gt;</comment>
                    <comment id="18310" author="joec4i" created="Mon, 16 Jul 2012 06:57:07 +0000"  >&lt;p&gt;@beberlei, sounds good to me. any plan of implementing this? &lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-150] noSQL Shema Management</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-150</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I have a few ideas to improve DBAL and ORM management for php:&lt;br/&gt;
1. Reading if needed ORM schemas definitions from YAML(existing plugin)&lt;br/&gt;
2. Then migration it into the one of NoSQL databases(such as MongoDB or Memcache/MemcacheDB)&lt;br/&gt;
3. Creating transactional temporary-changes data layer in NoSQL for a current-changes due the webapp launch and running for each run&lt;br/&gt;
4. Periodically migrations of a current changes with migration script into RDB(for example by cron)&lt;/p&gt;

&lt;p&gt;So we get:&lt;br/&gt;
Fast automatic shemas management(Symphony users - I say you &quot;haha&quot; because you have to do some unuseful things like &quot;doctrine:build-schema&quot; etc)&lt;br/&gt;
All advantages of RDB (like JOINS) in a data extraction&lt;br/&gt;
Full-independence in data changing due to webapp launch(and no transactions are needed) in the current NoSQL data-layer&lt;br/&gt;
Low load to the server because after extration we have a lazy return data into the RDB&lt;br/&gt;
In feature a simple caching any fast-changed data into NoSQL&lt;/p&gt;

&lt;p&gt;What do you thinking about it?&lt;/p&gt;</description>
                <environment>all</environment>
            <key id="12940">DBAL-150</key>
            <summary>noSQL Shema Management</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="arks">Alexey Shatunov</reporter>
                        <labels>
                    </labels>
                <created>Sun, 21 Aug 2011 10:03:45 +0000</created>
                <updated>Sun, 21 Aug 2011 10:03:45 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-59] Add support for PDO_CUBRID driver when stable</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-59</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;CUBRID is a relational database focused on high performance web-apps. If the PDO_CUBRID &lt;a href=&quot;http://pecl.php.net/package/PDO_CUBRID&quot; class=&quot;external-link&quot;&gt;http://pecl.php.net/package/PDO_CUBRID&lt;/a&gt; gets stable or betaish anytime we should think about support it.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12081">DBAL-59</key>
            <summary>Add support for PDO_CUBRID driver when stable</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Nov 2010 01:44:30 +0000</created>
                <updated>Mon, 22 Aug 2011 02:50:07 +0000</updated>
                                                                            <due></due>
                    <votes>3</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="16367" author="kadishmal" created="Mon, 22 Aug 2011 02:50:07 +0000"  >&lt;p&gt;Hello, I was recently looking if Doctrene supports CUBRID and found this issue. CUBRID PDO Driver is production-ready now, being used in Yii PHP Framework, for instance.&lt;/p&gt;

&lt;p&gt;I am CUBRID Project Manager and would like to know if you plan to elevate this issue up so that we could use Doctrene, too. We also plan to include Doctrene into &lt;a href=&quot;http://www.cubrid.org/projects&quot; class=&quot;external-link&quot;&gt;CUBRID Projects&lt;/a&gt; site after it gets official support.&lt;/p&gt;

&lt;p&gt;If you need any assistance, let me know. I will be glad to assist you.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-7] Add support for char fields in the ORM layer</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-7</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;It&apos;s not possible to use char fields in the ORM layer.&lt;/p&gt;

&lt;p&gt;It should be possible to use something like:&lt;/p&gt;

&lt;p&gt;@Column(type=&quot;char&quot;) or ...&lt;br/&gt;
@Column(type=&quot;string&quot;, fixed=true) or ...&lt;br/&gt;
@Column(type=&quot;fixedstring&quot;)&lt;/p&gt;</description>
                <environment></environment>
            <key id="10767">DBAL-7</key>
            <summary>Add support for char fields in the ORM layer</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="darkangel">Glen Ainscow</reporter>
                        <labels>
                    </labels>
                <created>Sun, 24 Jan 2010 10:45:06 +0000</created>
                <updated>Sat, 17 Sep 2011 21:57:10 +0000</updated>
                                    <version>2.1</version>
                <version>2.1.1</version>
                <version>2.1.2</version>
                                                <component>Drivers</component>
                <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="11454" author="romanb" created="Sun, 24 Jan 2010 11:04:25 +0000"  >&lt;p&gt;I dont think this is worth including in the main distribution. A char does not save much compared to a varchar (1 Byte?) and you already have 2 options to make a char:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;create your own custom type (i.e. FixedString)&lt;/li&gt;
	&lt;li&gt;Use @Column(..., columnDefinition=&quot;CHAR(2)&quot;)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;IMHO, just use a string type with the length you want: @Column(type=&quot;string&quot;, length=2). That becomes a varchar with length 2.&lt;/p&gt;</comment>
                    <comment id="11455" author="darkangel" created="Sun, 24 Jan 2010 12:59:24 +0000"  >&lt;p&gt;Ya, it is only 1 extra byte. I&apos;m not sure what to do, I like things as optimized as possible, but I guess I could just use columnDefinition if necessary.&lt;/p&gt;</comment>
                    <comment id="11456" author="darkangel" created="Sun, 24 Jan 2010 13:06:21 +0000"  >&lt;p&gt;Actually, I don&apos;t really see any reason &lt;b&gt;not&lt;/b&gt; to include the char type.&lt;/p&gt;</comment>
                    <comment id="11457" author="romanb" created="Sun, 24 Jan 2010 13:40:46 +0000"  >&lt;p&gt;How about code bloat? &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>
                    <comment id="11460" author="darkangel" created="Sun, 24 Jan 2010 16:07:46 +0000"  >&lt;p&gt;How many LoC?&lt;/p&gt;</comment>
                    <comment id="11463" author="guilhermeblanco" created="Mon, 25 Jan 2010 13:43:31 +0000"  >&lt;p&gt;@darkangel Around 40. And lots of conditionals, which decreases efficiency of algorithm.&lt;/p&gt;

&lt;p&gt;I vote for FixedString DBAL DataType.&lt;/p&gt;</comment>
                    <comment id="11466" author="romanb" created="Mon, 25 Jan 2010 13:54:45 +0000"  >&lt;p&gt;We will not put every special data type someone comes up with in the core library. If we go this route, at the end we have 100+ data types (100+ classes plus a bloated type map) in the core library.&lt;/p&gt;

&lt;p&gt;There are at least 2 decent options of making a char already if you care about byte counting (see above).&lt;/p&gt;

&lt;p&gt;&quot;Why not?&quot; is not the question to ask for when it comes to new features. If it were, we would include a whole lot of stuff that is useless for 99% of the users. There must be strong arguments for &quot;Why?&quot; and there are none.&lt;/p&gt;

&lt;p&gt;If we get 50+ votes on this issue we can talk again.&lt;/p&gt;
</comment>
                    <comment id="11470" author="darkangel" created="Mon, 25 Jan 2010 14:27:18 +0000"  >&lt;p&gt;Of course not. I didn&apos;t know that char was a special data type (especially since it&apos;s supported in DC1.2).&lt;/p&gt;

&lt;p&gt;I will use @columnDefinition.&lt;/p&gt;

&lt;p&gt;You may close this issue.&lt;/p&gt;</comment>
                    <comment id="11474" author="romanb" created="Mon, 25 Jan 2010 14:37:30 +0000"  >&lt;p&gt;No need to become defensive. There is still the chance that demand for this particular type gets very high and that can change things.&lt;/p&gt;

&lt;p&gt;Thats why this stays open. Otherwise the next guy would probably just create a duplicate ticket (not sure whether non-owners can reopen other tickets).&lt;/p&gt;</comment>
                    <comment id="11476" author="beberlei" created="Mon, 25 Jan 2010 15:21:24 +0000"  >&lt;p&gt;@Glen&lt;/p&gt;

&lt;p&gt;The problem with Doctrine 1 and having lots of different data-types is that of maintainability. You have to ensure that all the types work on all supported platforms with each and every version. The more datatypes we support by default the more complex will it be for the Doctrine 2 Core to ensure compability and maintainability in this regard.&lt;/p&gt;

&lt;p&gt;For each new platform that we will support all datatypes have to be supported for example, something that might even become impossible for some databases.&lt;/p&gt;

&lt;p&gt;Adding a datatype from the user perspective is rather simple though, it has to be tested once and is only about 20-40 LOC. I bet you 100 bucks that soon there will be code-snippets out there on all the different database specific types as a doctrine 2 implemention.&lt;/p&gt;</comment>
                    <comment id="11479" author="darkangel" created="Mon, 25 Jan 2010 16:37:57 +0000"  >&lt;p&gt;@Roman&lt;br/&gt;
Not being defensive, I have accepted/respected your decision. &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;@Benamin&lt;br/&gt;
I did think about cross-database compatibility. As far as I know, char is supported by the vast majority (or at least easily simulated). But I understand.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                    <comment id="16490" author="strygin" created="Sat, 17 Sep 2011 21:56:28 +0000"  >&lt;p&gt;Sorry for party rocking but i think that &lt;em&gt;&apos;fixed&apos;&lt;/em&gt; annotation should be enabled in ORM column definitions. &lt;br/&gt;
In this case @Column(type=&quot;string&quot;, length=4, fixed=true) would result in &quot;CHAR(4)&quot; for MySQL, Oracle and Postgres, Sqlite, and DB2, &quot;NCHAR(4)&quot; for MQSQL. etc... It is much more elegant than that &lt;em&gt;columnDefinition&lt;/em&gt;.&lt;br/&gt;
It is already supported by DBAL as well as &lt;em&gt;&apos;default&apos;&lt;/em&gt; heartlessly removed (&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-100&quot; title=&quot;Default values are not escaped&quot;&gt;&lt;del&gt;DDC-100&lt;/del&gt;&lt;/a&gt;) from annotation driver due to bizzare reluctance to deal with proper escaping of values.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>