This commit is contained in:
Julien Fastré 2025-06-18 11:56:20 +02:00
parent c407c3029f
commit 925fbaed6d
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
3 changed files with 13 additions and 7 deletions

View File

@ -77,9 +77,9 @@ final readonly class UserGroupRelatedToUserJobSync implements UserGroupRelatedTo
return $counter;
}
private function removeUserNotRelatedToJob(Connection $connection): int
{
$sql = <<<'SQL'
private function removeUserNotRelatedToJob(Connection $connection): int
{
$sql = <<<'SQL'
DELETE FROM chill_main_user_group_user
USING users AS u, chill_main_user_group ug
WHERE
@ -105,10 +105,10 @@ private function removeUserNotRelatedToJob(Connection $connection): int
)
SQL;
$result = $connection->executeQuery($sql);
$result = $connection->executeQuery($sql);
return $result->rowCount();
}
return $result->rowCount();
}
private function createNewAssociations(Connection $connection): int
{

View File

@ -2,6 +2,13 @@
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\Migrations\Main;
use Doctrine\DBAL\Schema\Schema;

View File

@ -15,7 +15,6 @@ use Chill\MainBundle\Entity\Center;
use Chill\MainBundle\Entity\User;
use Chill\MainBundle\Repository\CenterRepositoryInterface;
use Chill\MainBundle\Repository\ScopeRepositoryInterface;
use Chill\MainBundle\Security\Authorization\AuthorizationHelperForCurrentUserInterface;
use Chill\MainBundle\Security\Authorization\AuthorizationHelperInterface;
use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Service\RollingDate\RollingDateConverterInterface;