Provides some extra goodies to the base controller class and Doctrine entities in Symfony 2.

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

v1.0 2013-04-14 21:56 UTC


This library adds some simple functionality that I find helpful when creating Symfony 2 applications.


To use this library, simply add SymfonyExtensions to your composer.json:

    "require": {
        "blake/symfony-extensions": "*"


For now, this library provides some base classes that you can extend to get some added functionality.


  • Provides a #getRepository($className) method that is a shortcut for #getDoctrine()->getRepository($className)


  • Provides magic getters and setters so you don't need to generate and maintain them
    • E.g. getName() will return the value of $name if it exists
    • Properties can be ignored by prepending them with an underscore (_)