aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Db/QBMapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/AppFramework/Db/QBMapper.php')
-rw-r--r--lib/public/AppFramework/Db/QBMapper.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/public/AppFramework/Db/QBMapper.php b/lib/public/AppFramework/Db/QBMapper.php
index f1450b5dd4c..bf2e1a9420a 100644
--- a/lib/public/AppFramework/Db/QBMapper.php
+++ b/lib/public/AppFramework/Db/QBMapper.php
@@ -223,10 +223,10 @@ abstract class QBMapper {
* @param Entity $entity The entity to get the types from
* @psalm-param T $entity
* @param string $property The property of $entity to get the type for
- * @return int
+ * @return int|string
* @since 16.0.0
*/
- protected function getParameterTypeForProperty(Entity $entity, string $property): int {
+ protected function getParameterTypeForProperty(Entity $entity, string $property) {
$types = $entity->getFieldTypes();
if (!isset($types[ $property ])) {
@@ -244,6 +244,8 @@ abstract class QBMapper {
return IQueryBuilder::PARAM_BOOL;
case 'blob':
return IQueryBuilder::PARAM_LOB;
+ case 'datetime':
+ return IQueryBuilder::PARAM_DATE;
}
return IQueryBuilder::PARAM_STR;