DDC-3202: Hydration fails with inhereted overload #3966

Open
opened 2026-01-22 14:32:29 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Jul 1, 2014).

Originally assigned to: @beberlei on GitHub.

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.

Originally created by @doctrinebot on GitHub (Jul 1, 2014). Originally assigned to: @beberlei on GitHub. 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.
admin added the Bug label 2026-01-22 14:32:29 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3966