mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3202: Hydration fails with inhereted overload #3966
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.