Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-3202

Hydration fails with inhereted overload

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ORM
    • Labels:
    • Environment:
      mysql

      Description

      When i use single column with different types hydration not work. No error thrown, but in enity fields wrong data:

      Class A

      { /** * @ORM\Column(name="str", type="string") */ protected $value; ... }

      Class B extends A

      { /** * @ORM\Column(name="str", type="simple_array") */ protected $value; ... }

      column in database created with type tinytext

      after query:
      SELECT b FROM A;

      Entity of class B contain unparsed string in value property, not hydrated as simple_array. But to store B entities i need to parse this strng into array.
      in hydrator i see 2 columns str3 and str4 that mapped to "value" propery and to "str" column in database.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Evgen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: