I've been doing a lot of fiddling around with Symfony2 (latest PR4 release) and reading a lot of it's documentation (I've read pretty much all of it)
The problem i'm faced with now, are the best practices. I've looked at many of the bundles/projects source on symfony2bundles.org and they all have different ways of managing their entities, repositories, different file structure etc. For example, some have entity classes but no repositories. Some have repositories, entities and interfaces to repositories. There doesn't seem to be any best-practice consistency across all of the projects. Should I put my queries in a repository class and keep it in the entities folder or move it to a model folder? Should I always create interfaces? When doing a doctrine query, should I always use the NoResultException if a query returns null? or should I use something different? I appreciate that some of the bundles/projects are old and they've become outdated because of all the new changes applied to the current version. The forms part of the framework interests me greatly but there doesn't seem to be much documentation (particularly for twig form templates). I also don't know if I should put my form configuration in my entities class or create a new model class? or should I create the form in an action? Also, from reading a presentation (http://www.slideshare.net/jwage/ symfony2-and-doctrine2-integration) i'm confused about actions. In this slideshow it says the action should extend the sfDoctrineController. Should I use that? >From looking at the framework, I can clearly see that the symfony team have done a fantastic job. It's very impressive. I know it's early days and I shouldn't expect too much documentation....but there doesn't seem to be a little project which uses Doctrine2 and Twig Forms which has been confirmed as a good project for learning best practices from. (It would be great if a Symfony2 version of 'jobeet' is written up) I know it's look like i'm ranting folks but it's just a bit frustrating to look at multiple bundles/projects to see they all have a different file structure and code patterns. It's incredibly confusing. I'm stuck between a rock and a hard place. It's a shame because I *really* want to get up to speed on the framework so come March 2011 when it's due to be released i'll be ready to go and start developing production-ready applications. What are your thoughts? Are you experiencing any of the same confusion? Thanks muchly! Jamie -- 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