Doctrine 1
  1. Doctrine 1
  2. DC-1060

Datetime Fomatting not working on findId in DB2 Platform

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.3
    • Fix Version/s: 1.2.3
    • Component/s: Record
    • Labels:
      None
    • Environment:
      In DB2/Symfony2

      Description

      We had to put this fix to check for DateTimeTz in SimpleObjectHydartor to make it work for DB2. Same code works for mysql. Is it possible to put a fix as part of release of next Doctrine so we need not update vendor code locally.
      if (isset($cache[$column]['field'])) {
      $type = Type::getType($cache[$column]['class']->fieldMappings[$cache[$column]['name']]['type']);
      if ($type == 'DateTimeTz')

      { $value = substr($value, 0, 19); }

      $value = $type->convertToPHPValue($value, $this->_platform);
      }

      The error happens when we do a find($id) in
      $ep = $em->getRepository('some name')->find($id);

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Preethi Srinivasan
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: