DDC-3202: Hydration fails with inhereted overload #3987

Open
doctrinebot opened this Issue Jul 1, 2014 · 0 comments

2 participants

@doctrinebot

Jira issue originally created by user mastir:

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.

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment