Skip to content

Assemblée Générale - Déclaration des entités Doctrine#2294

Open
vgreb wants to merge 2 commits into
afup:masterfrom
vgreb:refacto/assemblee-generale-doctrine-1
Open

Assemblée Générale - Déclaration des entités Doctrine#2294
vgreb wants to merge 2 commits into
afup:masterfrom
vgreb:refacto/assemblee-generale-doctrine-1

Conversation

@vgreb

@vgreb vgreb commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

resolves #2290

Comment thread sources/AppBundle/AssembleeGenerale/Entity/Question.php Outdated
Comment on lines +28 to +36
public ?\DateTime $dateOuverture {
set(?\DateTime $dateOuverture) {
$this->dateOuverture = $dateOuverture;
if ($dateOuverture !== null) {
$this->dateCreation ??= $dateOuverture;
$this->etat = QuestionEtat::Ouverte;
}
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hyper moderne ❤️ 😆


public QuestionEtat $etat = QuestionEtat::EnAttente;

public function hasStatusWaiting(): bool

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Il faut le franciser aussi, non ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Je ne sais pas trop, est-ce que c'est considéré comme du métier ici ?
On utiliserait quoi ? estEnAttente(), estOuverte() et estFermee() ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pourquoi avoir besoin de ces 3 méthodes si c'est déjà un enum en fait ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ces méthode existaient dans l'entité Ting, après j'ai pas de préférence entre faire directement la condition ou l'appel à la méthode.
La méthode est plus lisible, mais la condition est plus explicite.

Comment thread sources/AppBundle/AssembleeGenerale/Entity/Vote.php
Comment thread sources/AppBundle/AssembleeGenerale/Entity/AssembleeGenerale.php Outdated
Comment thread sources/AppBundle/AssembleeGenerale/Entity/Presence.php Outdated
Comment thread sources/AppBundle/AssembleeGenerale/Entity/Vote.php Outdated
Comment thread sources/AppBundle/AssembleeGenerale/Entity/Vote.php Outdated
@vgreb vgreb force-pushed the refacto/assemblee-generale-doctrine-1 branch 2 times, most recently from ff0b678 to e3ee59e Compare June 10, 2026 12:07
@vgreb vgreb self-assigned this Jun 10, 2026
@vgreb vgreb force-pushed the refacto/assemblee-generale-doctrine-1 branch from e3ee59e to 7ea5023 Compare June 10, 2026 19:36
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.

Déclaration des entités

3 participants