Hey guys, I've got a basic skeleton for my SCRUM app that I'm building to wrap my head around Symfony2. At the moment I'm working on the most basic one to may relationship which can be described as "a story has many tasks".
I've written a very simple Task and Story entity which just has name and description plus the mapping fields: http://pastie.org/1405648 I've also created a TaskController that creates the form and saves the data on post. http://pastie.org/1405658 That's all working fine. What I need now is some advice on best practices. I know Symfony2 is still in development so practices will likely change but any advice would be great. First thing I tried was moving the form creation into it's own class and calling it as a service or creating a new instance manually. My issue with this approach was I couldn't access the Doctrine Entity Manager to pull out the stories which are listed in the drop down. Does anyone have an example of how I could clean up the code and make it more DRY? Cheers Leevi -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en