mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
exports: fix errors and depreciations
This commit is contained in:
parent
9fa3d596bb
commit
e9fca1288a
@ -13,6 +13,7 @@ namespace Chill\ActivityBundle\Export\Export;
|
||||
|
||||
use Chill\ActivityBundle\Repository\ActivityRepository;
|
||||
use Chill\ActivityBundle\Security\Authorization\ActivityStatsVoter;
|
||||
use Chill\MainBundle\Entity\Center;
|
||||
use Chill\MainBundle\Export\ExportInterface;
|
||||
use Chill\MainBundle\Export\FormatterInterface;
|
||||
use Doctrine\ORM\Query;
|
||||
@ -99,7 +100,7 @@ class StatActivityDuration implements ExportInterface
|
||||
public function initiateQuery(array $requiredModifiers, array $acl, array $data = [])
|
||||
{
|
||||
$centers = array_map(
|
||||
static fn (array $el): string => $el['center'],
|
||||
static fn (array $el): Center => $el['center'],
|
||||
$acl
|
||||
);
|
||||
|
||||
|
@ -188,7 +188,7 @@ class CustomFieldChoice extends AbstractCustomField
|
||||
$choices = [];
|
||||
|
||||
foreach ($cf->getOptions()[self::CHOICES] as $choice) {
|
||||
if (false === $choices['active']) {
|
||||
if (false === $choice['active']) {
|
||||
continue;
|
||||
}
|
||||
$choices[$choice['slug']] = $this->translatableStringHelper
|
||||
|
@ -192,8 +192,8 @@ class ListPersonDuplicate implements DirectExportInterface, ExportElementValidat
|
||||
|
||||
$statement = $this->entityManager->getConnection()->prepare($sql);
|
||||
$statement->bindValue('precision', $precision);
|
||||
$statement->execute();
|
||||
$result = $statement->executeQuery();
|
||||
|
||||
return $statement->fetchAll();
|
||||
return $result->fetchAllAssociative();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user