Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1967

mysql Tiny ints not behaving properley

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 2.2.2
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      mysql 5.1.58, php 5.3

      Description

      If I set up a field as a tinyint lets say called bob. I then extract a record.

      If I do $object->getBob() - when bob = 1, everything works fine.

      However, if I do $object->getBob() when bob = 0, the null value is returned.

      If bob is null, everything works fine.

      This issues only seems to happen with mysql tinyint.

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Jonathan Robinson
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: