Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony 7 #1248

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft

Symfony 7 #1248

wants to merge 12 commits into from

Conversation

NathanHuisman
Copy link
Contributor

@NathanHuisman NathanHuisman commented Feb 8, 2025

WIP voor Symfony 7 + Doctrine ORM 3

@NathanHuisman NathanHuisman force-pushed the symfony7 branch 2 times, most recently from 2fddfd6 to 7085561 Compare February 8, 2025 22:01
Copy link

sonarqubecloud bot commented Feb 8, 2025

Copy link
Contributor Author

@NathanHuisman NathanHuisman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

De meeste veranderingen zijn vooral $this->_em -> $this->getEntityManager() en Security\Core -> SecurityBundle. Beetje vervelend om hier doorheen te spitten, maar ja.
Verder nog wat dingetjes over het hoofd gezien en moet ook nog werken aan database migrations + fixtures

@@ -182,3 +182,5 @@ services:
CsrDelft\common\Security\Voter\:
resource: '../lib/common/Security/Voter'

Doctrine\Common\Annotations\Reader:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kunnen we dit niet weghalen?

@@ -14,9 +14,6 @@ doctrine:

url: '%env(resolve:DATABASE_URL)%'
types:
date: CsrDelft\common\Doctrine\Type\DateImmutableType
datetime: CsrDelft\common\Doctrine\Type\DateTimeImmutableType
datetimetz: CsrDelft\common\Doctrine\Type\DateTimeTzImmutableType
time: Doctrine\DBAL\Types\TimeImmutableType
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

time gemist

public function getSupportedTypes(?string $format): array
{
return [
"object" => true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nog niet helemaal bekend met de semantics hiervan

@@ -91,7 +91,7 @@ public function saveVrijstelling(
DateTimeInterface $eind,
$percentage
) {
return $this->_em->transactional(function () use (
return $this->getEntityManager()->transactional(function () use (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dit moet wrapInTransaction zijn

@@ -11,6 +11,7 @@
use CsrDelft\view\formulier\knoppen\FormDefaultKnoppen;
use CsrDelft\view\formulier\ModalForm;
use Exception;
use Twig\Environment;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deze moet weg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants