Skip to content

Conversation

@vgreb
Copy link
Collaborator

@vgreb vgreb commented Jan 16, 2026

No description provided.

@vgreb vgreb force-pushed the doctrine/accounting-configuration-events branch from 0972d83 to faa665f Compare January 16, 2026 13:32
'label' => 'Évènement',
'choices' => $events,
'class' => Event::class,
'query_builder' => fn($er) => $er->createQueryBuilder('e')->orderBy('e.name', 'ASC'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'query_builder' => fn($er) => $er->createQueryBuilder('e')->orderBy('e.name', 'ASC'),
'query_builder' => fn(EntityRepository $er) => $er->createQueryBuilder('e')->orderBy('e.name', 'ASC'),

C'est la classe Doctrine\ORM\EntityRepository qu'il faut mettre.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

En typehintant avec c'est classe on a une erreur avec la règle phpstan afup.doctrine.repositoryMethods. je regarde pour l'adapter

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