Adding Doctrine 2 snippets to the package controller.