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:
18
src/Doctrine/DataSubscriberInterface.php
Normal file
18
src/Doctrine/DataSubscriberInterface.php
Normal 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
|
||||
{
|
||||
}
|
||||
@@ -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[]
|
||||
|
||||
@@ -74,9 +74,4 @@ final class UTCDateTimeType extends DateTimeType
|
||||
|
||||
return $converted;
|
||||
}
|
||||
|
||||
public function requiresSQLCommentHint(AbstractPlatform $platform): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user