Project

General

Profile

Actions

Bug #79294

closed

Persisting Traversable DomainObjectInterface broken

Added by Mathias Brodala over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Category:
Extbase
Target version:
Start date:
2017-01-12
Due date:
% Done:

100%

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

Description

Currently objects which implement the Traversable interface are always persisted as CSV of their values after iterating. This change introduced this change of behavior with TYPO3 7.0.0. This is broken in various ways:

  1. The type of the relation is ignored which could be e.g. ColumnMap::RELATION_HAS_ONE, thus multivalue does not make sense.
  2. If an object implements DomainObjectInterface it must always be persisted using its identifier.

While I'm not sure how to handle the first case the second one should be fixed right away since it breaks persistence of objects which implement both Traversable as well as DomainObjectInterface


Files

test_traversable.zip (6.24 KB) test_traversable.zip Test extension Mathias Brodala, 2017-01-23 10:15

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #57255: Cleanup redundant code in extbase persistenceClosed2014-03-24

Actions
Actions

Also available in: Atom PDF