-
Notifications
You must be signed in to change notification settings - Fork 11
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
base: master
Are you sure you want to change the base?
Symfony 7 #1248
Conversation
Hopelijk werkt CI nu wel... Oeps Okay, hopelijk zijn de fixtures nu echt gefixt...
2fddfd6
to
7085561
Compare
7085561
to
db9588f
Compare
|
There was a problem hiding this 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: |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 ( |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deze moet weg
WIP voor Symfony 7 + Doctrine ORM 3