symfony fetch na tablice intów

    private function getPaymentConfigurationPaymentsIdsToUpdate(int $aliorPaymentIntegrationId): array
    {
        $query = $this->connection->executeQuery(
            'SELECT id FROM payment WHERE integration_id = :integration_id',
            [
                'integration_id' => $aliorPaymentIntegrationId,
            ],
            [
                'integration_id' => Types::INTEGER,
            ]
        );

        return array_map('intval', $query->fetchAll(PDO::FETCH_COLUMN));
    }
Komentarze wyłączone