Skip to content
Snippets Groups Projects
Commit 70638576 authored by Stephan Schuler's avatar Stephan Schuler Committed by Andreas Wolf
Browse files

[BUGFIX] Allow subclasses of \DateTime as entity properties

When a class "\MyCustomDateTime extends \DateTime", the data mapper
creates "\DateTime" objects instead when mapping database results.
This patch uses the class annotation to resolve the class to create.

Change-Id: I45062d4d1a44333016258289ea9e2026d9923f70
Resolves: #66939
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/39534


Reviewed-by: default avatarSusanne Moog <typo3@susannemoog.de>
Tested-by: default avatarSusanne Moog <typo3@susannemoog.de>
Reviewed-by: default avatarDaniel Goerz <ervaude@gmail.com>
Tested-by: default avatarDaniel Goerz <ervaude@gmail.com>
Reviewed-by: default avatarAndreas Wolf <andreas.wolf@typo3.org>
Tested-by: default avatarAndreas Wolf <andreas.wolf@typo3.org>
parent 7a63ad91
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment