#98114Core types sould not get marked as one-to-one relation.
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
-
Gerrit Code Review pushed patch set 1 for main to change 75408 status
NewUnder Review 08/10/22, 10:44 -
Gerrit Code Review pushed patch set 2 for main to change 75408 08/10/22, 11:28
-
Gerrit Code Review pushed patch set 3 for main to change 75408 12/15/22, 21:36
-
Gerrit Code Review pushed patch set 4 for main to change 75408 12/19/22, 09:56
-
Gerrit Code Review pushed patch set 5 for main to change 75408 05/03/23, 09:45
-
Benni Mack changed status
Under ReviewNew 10/15/24, 10:13 -
Markus Klein commented and changed status
NewNeeds Feedback 11/22/24, 08:09 -
Georg Ringer commented and changed status
Needs FeedbackClosed 09/02/26, 13:29closing the issue as lack of feedback. if still valid, feel free to contact me to reopen it or create a new issue
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.