<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu May 23 14:49:11 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/si/jira.issueviews:issue-xml/DBAL-385/DBAL-385.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://www.doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

<item>
            <title>[DBAL-385] Null need set to NULL in array type</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-385</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When use Array type and NULL value&lt;/p&gt;

&lt;p&gt;set null give in database &apos;N;&apos; (serialise(null))&lt;br/&gt;
need NULL &lt;/p&gt;</description>
                <environment></environment>
            <key id="14238">DBAL-385</key>
            <summary>Null need set to NULL in array type</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="7">Can&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="ivan1986">Ivan Borzenkov</reporter>
                        <labels>
                    </labels>
                <created>Sat, 17 Nov 2012 11:14:33 +0000</created>
                <updated>Sun, 25 Nov 2012 15:44:45 +0000</updated>
                    <resolved>Sun, 25 Nov 2012 12:16:32 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19051" author="beberlei" created="Sun, 25 Nov 2012 12:16:32 +0000"  >&lt;p&gt;This would be a BC Break and cannot be done anymore. You can add your own array type that has this behavior.&lt;/p&gt;</comment>
                    <comment id="19055" author="ivan1986" created="Sun, 25 Nov 2012 13:09:23 +0000"  >&lt;p&gt;It will not be a loss of backward compatibility.&lt;br/&gt;
Now if we have an empty array, that is stored serialized NULL, but the default value for NULL instead of N;&lt;br/&gt;
On the part of php will not be any differences - the inverse transform is the same, from the database, we combined the two into a single value, the more accurate in terms of DB&lt;/p&gt;</comment>
                    <comment id="19056" author="beberlei" created="Sun, 25 Nov 2012 15:08:59 +0000"  >&lt;p&gt;The field might be NOT NULL, that is what might break BC.&lt;/p&gt;</comment>
                    <comment id="19057" author="ivan1986" created="Sun, 25 Nov 2012 15:31:56 +0000"  >&lt;p&gt;and if field is null?&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt; 

/**
 * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; array $yandexReg
 *
 * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;yandexReg&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;array&quot;&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
 */
&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $yandexReg;

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; </comment>
                    <comment id="19058" author="beberlei" created="Sun, 25 Nov 2012 15:44:45 +0000"  >&lt;p&gt;Well in this case it works obviously, however the Type API doesn&apos;t have access to that information. Thats why I meant you should build your own array type and override the internal implementation. This is explained in the Mapping Fields Document of ORM and in the Type Documentation of DBAL.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>