Issue Bug Closed

#98114Core types sould not get marked as one-to-one relation.

David Blatter 08/10/22, 09:59 updated 09/02/26, 13:29

Description

The method TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DateMapFactory::setRelations marks properties as one-to-one relation if their type is a classname. This should not be done for core types (implementing TYPO3\CMS\Core\Type\TypeInterface).

When inserting objects using the PersistenceManager, a value of ‘0’ is set for relation fields. Depending on the column type, this may produce a sql error.

Reviews 1

History 38

  1. Gerrit Code Review pushed patch set 1 for main to change 75408 status New Under Review 08/10/22, 10:44

  2. Gerrit Code Review pushed patch set 2 for main to change 75408 08/10/22, 11:28

  3. Gerrit Code Review pushed patch set 3 for main to change 75408 12/15/22, 21:36

  4. Gerrit Code Review pushed patch set 4 for main to change 75408 12/19/22, 09:56

  5. Gerrit Code Review pushed patch set 5 for main to change 75408 05/03/23, 09:45

  6. Benni Mack changed status Under Review New 10/15/24, 10:13

  7. Markus Klein commented and changed status New Needs Feedback 11/22/24, 08:09

    Can you please elaborate on the use case?
    As of version 14, TypeInterface is only implemented by `\TYPO3\CMS\Core\Type\File\FileInfo` and `\TYPO3\CMS\Core\Type\File\ImageInfo`. I’m not sure how this ends up being your type for the ColumnMap.

  8. Georg Ringer commented and changed status Needs Feedback Closed 09/02/26, 13:29

    closing the issue as lack of feedback. if still valid, feel free to contact me to reopen it or create a new issue