Stack Rover Tech

Projects / Doctrine Dynamic Finder

Case studyPublic

Open source

Doctrine Dynamic Finder

Magic finder methods for Doctrine ORM 3.

Finder methods without boilerplate, parsed once and cached.

github.com/IgliHoxha/doctrine-dynamic-finder
What the library gives a repository: finder methods built from their names.

In the picture: What the library gives a repository: finder methods built from their names.

Type
Open source
Status
Public
Stack
PHP 8.3, Doctrine ORM 3, Symfony

Why we built it

Every Symfony repository ends up with the same hand-written finder methods for the same field combinations.

What it does

findByStatusAndTypeWithAuthor() with zero boilerplate, resolved at runtime, with first-class Symfony support.

How it is built

PHP 8.3 and Doctrine ORM 3.

Decisions worth noting

Method names are parsed once and cached; an unknown field fails loudly at the call site.

All projectsOr write to hello@stackrover.tech