<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sat May 25 12:41:01 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/DDC-2045/DDC-2045.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>[DDC-2045] Unit of work use all columns for insert</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2045</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I use MySQL. And I&apos;m OK with default values that will be assigned by DB for columns which values I don&apos;t set explicitly. But Doctrine seems to unable to skip some columns when building insert SQL query.&lt;/p&gt;

&lt;p&gt;People suggest to use nullable flag to enable desired behaviour. And I don&apos;t see how it could help. I checked UnitOfWork.php and BasicEntityPersister.php. There is nothing about nullable.&lt;br/&gt;
And doc &lt;a href=&quot;http://docs.doctrine-project.org/en/latest/reference/limitations-and-known-issues.html&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/en/latest/reference/limitations-and-known-issues.html&lt;/a&gt; says that you cannot use custom persisters so far.&lt;/p&gt;

&lt;p&gt;So why not track changes for unsaved entities as well, and don&apos;t force applications to generate more traffic with more SQL text and developers to set default values in entity constructors?&lt;/p&gt;

&lt;p&gt;I would be glad if I&apos;m mistaken and this feature is already implemented and you describe how to resolve the issue. Thanks&lt;/p&gt;</description>
                <environment>PHP 5.4.7--pl0-gentoo mysql  Ver 14.14 Distrib 5.5.22, for Linux (x86_64)&lt;br/&gt;
</environment>
            <key id="14072">DDC-2045</key>
            <summary>Unit of work use all columns for insert</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="2">Won&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="coviex">Covie X</reporter>
                        <labels>
                    </labels>
                <created>Thu, 27 Sep 2012 11:12:49 +0000</created>
                <updated>Mon, 13 May 2013 10:08:37 +0000</updated>
                    <resolved>Wed, 23 Jan 2013 22:03:59 +0000</resolved>
                            <version>2.3</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19379" author="ocramius" created="Wed, 23 Jan 2013 22:03:59 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=coviex&quot; class=&quot;user-hover&quot; rel=&quot;coviex&quot;&gt;Covie X&lt;/a&gt; the `nullable` flag is a mapping used in columns. See &lt;a href=&quot;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/annotations-reference.html#annref-column&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/annotations-reference.html#annref-column&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also, Doctrine does not skip columns since default DB-side values are not supported by the ORM. To have default values, you usually set them in the entity&apos;s constructor.&lt;/p&gt;</comment>
                    <comment id="20372" author="coviex" created="Mon, 13 May 2013 10:08:37 +0000"  >&lt;p&gt;Marco, you should be ashamed of the way you treat issues.&lt;br/&gt;
RTFM answer when there is real and huge problem, seriously?!&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>