<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Fri May 24 18:57:07 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+10032+AND+labels+%3D+%22collation%22&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+10032+AND+labels+%3D+%22collation%22</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="4" total="4"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DDC-2288] Schema Tool doesn&apos;t update collation on table level</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2288</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In Symfony2, when updating the collation option of a table, the schema tool doesn&apos;t recognize the change: &lt;/p&gt;

&lt;p&gt;Changing from:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt; 
* @ORM\Table()
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;To:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt; 
* @ORM\Table(options={&lt;span class=&quot;code-quote&quot;&gt;&quot;collate&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;utf8_swedish_ci&quot;&lt;/span&gt;})
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;Results in:&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; 
$ php app/console doctrine:schema:update --dump-sql
Nothing to update - your database is already in sync with the current entity metadata.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; </description>
                <environment></environment>
            <key id="14468">DDC-2288</key>
            <summary>Schema Tool doesn&apos;t update collation on table level</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="rickard">Rickard Andersson</reporter>
                        <labels>
                        <label>collation</label>
                        <label>schematool</label>
                    </labels>
                <created>Fri, 8 Feb 2013 09:50:30 +0000</created>
                <updated>Fri, 8 Feb 2013 09:50:30 +0000</updated>
                                                                    <component>Mapping Drivers</component>
                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2286] Update documentation for collation</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2286</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The documentation at &lt;a href=&quot;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/faq.html#how-do-i-set-the-charset-and-collation-for-mysql-tables&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/faq.html#how-do-i-set-the-charset-and-collation-for-mysql-tables&lt;/a&gt; clearly states that the collation should be set at database level and then inherited for all tables created. &lt;/p&gt;

&lt;p&gt;Digging through the code and reading this issue &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2139&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2139&lt;/a&gt; it&apos;s clear that this is no longer the case.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14466">DDC-2286</key>
            <summary>Update documentation for collation</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="rickard">Rickard Andersson</reporter>
                        <labels>
                        <label>collation</label>
                        <label>documentation</label>
                    </labels>
                <created>Fri, 8 Feb 2013 09:27:56 +0000</created>
                <updated>Fri, 8 Feb 2013 09:27:56 +0000</updated>
                                                                    <component>Documentation</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2139] Table collate/charset doesn&apos;t inherits from database</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2139</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Using symfony2 command doctrine:schema:create the tables and Varchar fields are Collate/Charset are not inherited from database. I changed MySQL defaults to latin1/latin1_general_ci; The doctrine:database:create works; but tables and fields don&apos;t. So I found there is a code on MySqlPlataform.php:&lt;/p&gt;

&lt;p&gt;if ( ! isset($options&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;charset&amp;#39;&amp;#93;&lt;/span&gt;)) &lt;/p&gt;
{
  $options[&apos;charset&apos;] = &apos;utf8&apos;;
}

&lt;p&gt;if ( ! isset($options&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;collate&amp;#39;&amp;#93;&lt;/span&gt;)) &lt;/p&gt;
{
  $options[&apos;collate&apos;] = &apos;utf8_unicode_ci&apos;;
}

&lt;p&gt;$query .= &apos;DEFAULT CHARACTER SET &apos; . $options&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;charset&amp;#39;&amp;#93;&lt;/span&gt;;&lt;br/&gt;
$query .= &apos; COLLATE &apos; . $options&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;collate&amp;#39;&amp;#93;&lt;/span&gt;;&lt;/p&gt;

&lt;p&gt;So if you don&apos;t pass collate and charset as entity options, it will put utf8 and utf8_unicode_ci instead of dabatase default charset.&lt;/p&gt;

&lt;p&gt;My suggestion is to change a little bit to:&lt;/p&gt;

&lt;p&gt;if (isset($options&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;charset&amp;#39;&amp;#93;&lt;/span&gt;)) &lt;/p&gt;
{
  $query .= &apos;DEFAULT CHARACTER SET &apos; . $options[&apos;charset&apos;];
}

&lt;p&gt;if (isset($options&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;collate&amp;#39;&amp;#93;&lt;/span&gt;)) &lt;/p&gt;
{
  $query .= &apos; COLLATE &apos; . $options[&apos;collate&apos;];        
}
</description>
                <environment>Symfony2</environment>
            <key id="14217">DDC-2139</key>
            <summary>Table collate/charset doesn&apos;t inherits from database</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="2">Won&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="williamk">William Knak</reporter>
                        <labels>
                        <label>charset</label>
                        <label>collate</label>
                        <label>collation</label>
                        <label>mysql</label>
                        <label>utf</label>
                        <label>utf8</label>
                    </labels>
                <created>Mon, 12 Nov 2012 15:29:22 +0000</created>
                <updated>Sun, 25 Nov 2012 12:25:30 +0000</updated>
                    <resolved>Sun, 25 Nov 2012 12:25:30 +0000</resolved>
                            <version>2.3</version>
                                                <component>ORM</component>
                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19053" author="beberlei" created="Sun, 25 Nov 2012 12:25:30 +0000"  >&lt;p&gt;If we change it, then it will be like before and users disliked that very much. The decision is to use UTF-8 as default and everybody else has to change the information instead of the other way around.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1274] there is no way to set collate of the table charset !</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1274</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;i searched a lot for this&lt;/p&gt;

&lt;p&gt;there is no way to set the collate of table fields to for ex. utf8_persian_ci in doctrine settings&lt;/p&gt;</description>
                <environment>zend frame work 1.10 with doctrine orm 2 and dbal</environment>
            <key id="12819">DDC-1274</key>
            <summary>there is no way to set collate of the table charset !</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="placebo">sina miandashti</reporter>
                        <labels>
                        <label>charset</label>
                        <label>collate</label>
                        <label>collation</label>
                        <label>mysql</label>
                    </labels>
                <created>Wed, 13 Jul 2011 07:08:07 +0000</created>
                <updated>Mon, 12 Nov 2012 16:54:22 +0000</updated>
                    <resolved>Wed, 13 Jul 2011 17:06:20 +0000</resolved>
                            <version>2.0.6</version>
                                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16171" author="beberlei" created="Wed, 13 Jul 2011 17:06:20 +0000"  >&lt;p&gt;This is not a supported feature, if you set the collation in the CREATE DATABASE statement this will inherit to all fields automatically.&lt;/p&gt;</comment>
                    <comment id="18972" author="williamk" created="Mon, 12 Nov 2012 16:53:08 +0000"  >&lt;p&gt;Actually Doctrine 2.3.0 does not allow inheritance. Please look at Issue #&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2139&quot; title=&quot;Table collate/charset doesn&amp;#39;t inherits from database&quot;&gt;&lt;del&gt;DDC-2139&lt;/del&gt;&lt;/a&gt; . At least, if there&apos;s an option to set a global default collation (wich I didn&apos;t find), the problem will occurs every time a table of string/varchar field was created by Symfony2 Doctrine Command.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>