Skip to content

Loading…

DDC-3202: Hydration fails with inhereted overload #3987

Open
doctrinebot opened this Issue · 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
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.