-
Notifications
You must be signed in to change notification settings - Fork 42
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
Semaine type : nouvelle entité PeriodPositionFreeLog pour stocker l'historique des créneaux fixes #840
Conversation
* @ORM\ManyToOne(targetEntity="PeriodPosition", cascade={"remove"}) | ||
* @ORM\JoinColumn(referencedColumnName="id", onDelete="CASCADE") | ||
*/ | ||
private $periodPosition; |
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.
je me pose la question si c'est une bonne idée de faire une relation ici, vs stocker un string. si la periodPosition change (par exemple on change l'horaire du créneau, ou pire on la supprime), alors on perd l'info...
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.
j'ai opté pour rajouter un champ supplémentaire "periodPositionString" : 2942501
2942501
to
9e5f612
Compare
9e5f612
to
e344e0e
Compare
53ca356
to
63b06cf
Compare
…istorique des créneaux fixes (elefan-grenoble#840) * New entity PeriodPositionFreeLog * PeriodPositionFreeForm * Dispatch PeriodPositionFreedEvent * Add PeriodPositionFreeLogController with listAction * Add PeriodPositionFreeLog.bookedTime field * Add PeriodPositionFreeLog.periodPositionString field * Fixes
Quoi ?
Calquer le fonctionnement de
ShiftFreeLog
, mais ici pour les postes types des créneaux fixes.PeriodPositionFreeLog
PeriodPositionFreedEvent
lorsque un poste type est libéréPeriodPositionFreeLogController
qui affiche la liste de tous les postes types libérés (ordonné par plus récent + filtre basique)Reste à faire (autre PR) :
use_fly_and_fixed
?Pourquoi ?
Pour garder un historique des postes types
Captures d'écran