I am creating a website where clients register for an appointment and the workers (signed-in users) can choose the clients which they will be responsible for. Whoever chooses the client first, gets it. But I want to implement a queue for other workers if the client has already been chosen by another person and this person decides to cancel the client. I want the first person in queue to get the client assigned to him upon cancelling. How do I approach it? How should the whole infrastructure look like? Do I need a separate table in the database for the queue, or do I have some kind of an array as one of the “Clients” entity’s attributes? How should the functions in the controller look like?
This basically demonstrates how one of the CRUD elements should behave.
Source: Symfony Questions
Was this helpful?
0 / 0