Issue Bug Closed

#69090detachObjectFromParentObject() uses invalid values for the parentKey on has many relations

Morton Jonuschat 08/15/15, 22:02 updated 10/19/17, 21:51

Description

When detaching an object from a parent thas has many children the parent key is an integer field, not a string. When a database validates the input against the column type this leads to errors on update/detach.

Reproducible in the functional RelationTest when running them on MySQL in strict mode. As an example the test RelationTest::removeMiddlePostFromBlog fails with with the message
Incorrect integer value: ‘’ for column ‘blog’ at row 1

Reviews 1