- Follow Symonfy2 coding standards which follow PSR-0, PSR-1 & PSR-2
- 4 Spaces not Tabs
- https://github.com/opensky/Symfony2-coding-standard
- Access major relationships through repository methods rather than getters.
- Smaller joins on initial object load
- Allows filtering on relationship
- Consider preloading loading
many to one
andone to one
- Follow Symonfy2
- Symonfy2 custom annotations are after the description / long description and before
@params
- Symfony2 custom annotations are split with a line break and boundaried by blank lines
/**
* Description
*
* Longer description
*
* @View(...)
* @Route(...)
*
* @param string $dummy Some argument description
* @param array $options
*
* @return string|null Transformed input
*
* @throws \RuntimeException
*/