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. Markus Klein commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2024-11-22T08:09:04+00:00" > 11/22/24, 08:09 </span>

    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.

  2. Georg Ringer commented and changed status Needs Feedback Closed <span data-processor="relativetime" data-value="2026-09-02T13:29:38+00:00" > 09/02/26, 13:29 </span>

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