<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sun May 26 07:58:27 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-1967/DDC-1967.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-1967] mysql Tiny ints not behaving properley</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1967</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;If I set up a field as a tinyint lets say called bob.  I then extract a record.  &lt;/p&gt;

&lt;p&gt;If I do $object-&amp;gt;getBob() - when bob = 1, everything works fine.&lt;/p&gt;

&lt;p&gt;However, if I do $object-&amp;gt;getBob() when bob = 0, the null value is returned.&lt;/p&gt;

&lt;p&gt;If bob is null, everything works fine.&lt;/p&gt;

&lt;p&gt;This issues only seems to happen with mysql tinyint.&lt;/p&gt;</description>
                <environment>mysql 5.1.58, php 5.3</environment>
            <key id="13909">DDC-1967</key>
            <summary>mysql Tiny ints not behaving properley</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="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jonathanpete">Jonathan Robinson</reporter>
                        <labels>
                    </labels>
                <created>Sat, 4 Aug 2012 22:48:14 +0000</created>
                <updated>Wed, 10 Oct 2012 23:20:27 +0000</updated>
                    <resolved>Wed, 10 Oct 2012 23:20:27 +0000</resolved>
                            <version>2.2.2</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18513" author="asm89" created="Tue, 14 Aug 2012 21:55:50 +0000"  >&lt;p&gt;I guess it is &apos;false&apos; that is being returned? That&apos;s because MySql&apos;s tinyint will be mapped as boolean (by doctrine dbal).&lt;/p&gt;</comment>
                    <comment id="18554" author="jonathanpete" created="Tue, 28 Aug 2012 21:44:13 +0000"  >&lt;p&gt;No.  The value &quot;&quot; is returned as in an empty string.&lt;/p&gt;</comment>
                    <comment id="18569" author="beberlei" created="Wed, 29 Aug 2012 12:21:23 +0000"  >&lt;p&gt;can you show your mapping for this value?&lt;/p&gt;</comment>
                    <comment id="18810" author="jonathanpete" created="Tue, 9 Oct 2012 08:12:11 +0000"  >&lt;p&gt;Sure.  Mapping is:&lt;/p&gt;

&lt;p&gt;    /**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@var boolean $isvegetarian&lt;br/&gt;
     *&lt;/li&gt;
	&lt;li&gt;@Column(name=&quot;IsVegetarian&quot;, type=&quot;boolean&quot;, nullable=true)&lt;br/&gt;
     */&lt;br/&gt;
    private $isvegetarian;&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;DBAL maps field as a tiny int.  If I manually set field to 0, DBAL returns null.  If I set to null, DBAL returns null.  If I set to 1, DBAL returns true.&lt;/p&gt;</comment>
                    <comment id="18817" author="jonathanpete" created="Wed, 10 Oct 2012 16:14:00 +0000"  >&lt;p&gt;I installed the new version, then reverted back and the problem seems to have gone away.  I&apos;m very confused!!  Perhaps it was an installation problem at my end.  But can&apos;t think what.  Oh well...&lt;/p&gt;</comment>
                    <comment id="18819" author="jonathanpete" created="Wed, 10 Oct 2012 23:04:40 +0000"  >&lt;p&gt;nope, i&apos;m wrong.  it is a bug - something else fooled me into thinking it was working.  I have tried setting up other boolean data fields and the same issue occurs. &lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>