Good day everybody,

I am working with Sonata, and I really have a hard time understanding it.

What I do understand;


   - How to link new entities
   - How to create the admin class for an entity as to what should be shown 
   in the list, form, show, etc

I understand perfectly how the CRUD (if I can say it like that) works.


Now, what I don't understand is how do I easily add custom logic. How can I 
add logic so that different user roles can perform different actions on an 
entity.


For example;


Any user can create an order. An order where he indicate what he wants, how 
many, from which vendor. and then assign it to a specific supervisor with 
other roles that should approve the order, or disapprove it, or sent it to 
someone else for a second opinion.

On the same time while the all this happens, a log should be kept. When an 
order is created a log for that order should indicate who created it and 
when. If the order is modified (edited) the log should be updated 
according. When another user approve or disapprove the order, same story, 
it should be logged.


Now, how do I add a form to the bottom of a 'show' template for supervisors 
to select another user, and to approve or disapprove it?


I desperately need help, because I'm about to pull my hair out. I don't 
understand this bundle! And the documentation on the official website is 
really poor. I can't understand much from there. I've also checked out a 
lot of Stack Overflow questions and even asked questions myself but I don't 
get anything!



-- 
You received this message because you are subscribed to the Google Groups 
"sonata-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sonata-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to