Project

General

Profile

Actions

Bug #69090

closed

Epic #68397: Make TYPO3 work with MySQL strict mode

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

Added by Morton Jonuschat over 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Category:
Extbase
Target version:
Start date:
2015-08-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

Actions #1

Updated by Morton Jonuschat over 9 years ago

  • Status changed from New to In Progress
  • Parent task set to #68397
Actions #2

Updated by Gerrit Code Review over 9 years ago

  • Status changed from In Progress to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42655

Actions #3

Updated by Morton Jonuschat over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF