Release 2.0.9 (#3922)

* fix api definition
* include customer number in validation message
* fix doctrine deprecation, prepare for DBAL 4
* added DataSubscriberInterface to identify certain doctrine subscribers
This commit is contained in:
Kevin Papst
2023-03-14 23:51:49 +01:00
committed by GitHub
parent 8449eafcb6
commit 1a8c78944a
15 changed files with 50 additions and 75 deletions

View File

@@ -0,0 +1,18 @@
<?php
/*
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Doctrine;
/**
* Used to identify EventSubscribers, that work upon EntityManager events and listen on data changes.
* These Subscribers will deactivated on batch imports, for performance gains and reduced DB queries.
*/
interface DataSubscriberInterface
{
}

View File

@@ -16,9 +16,9 @@ use Doctrine\ORM\Event\OnFlushEventArgs;
use Doctrine\ORM\Events;
/**
* A listener to make sure all Timesheet entries will have a proper duration.
* A listener to make sure all Timesheet entries will be calculated properly (e.g. duration and rates).
*/
final class TimesheetSubscriber implements EventSubscriber
final class TimesheetSubscriber implements EventSubscriber, DataSubscriberInterface
{
/**
* @var CalculatorInterface[]

View File

@@ -74,9 +74,4 @@ final class UTCDateTimeType extends DateTimeType
return $converted;
}
public function requiresSQLCommentHint(AbstractPlatform $platform): bool
{
return true;
}
}