Add getter

This commit is contained in:
Dennis Eichhorn 2019-04-22 16:31:20 +02:00
parent 39103b5ec6
commit 35d47c7a53

View File

@ -2751,7 +2751,7 @@ class DataMapperAbstract implements DataMapperInterface
*/
public static function getCreatedAt() : string
{
return static::$createdAt;
return !empty(static::$createdAt) ? static::$createdAt : static::$primaryField;
}
/**