Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 465 Bytes

0-0-symfony.md

File metadata and controls

13 lines (10 loc) · 465 Bytes

Integrating with frameworks - Symfony

Replacing the default repository type

Replacing Doctrine's default repository type with Happyr\DoctrineSpecification\Repository\EntitySpecificationRepository is easy in Symfony. The Doctrine bundle provides a place in configuration to specify the new type.

# app/config/config.yml
doctrine:
    orm:
        default_repository_class: 'Happyr\DoctrineSpecification\Repository\EntitySpecificationRepository'