Skip to content

Instantly share code, notes, and snippets.

Created Sep 11, 2020
What would you like to do?
namespace Example\FooBundle\Repository;
use Doctrine\ORM\EntityRepository;
class FooRepository extends EntityRepository
implements FooRepositoryInterface
public function fetchLatest()
// create query builder and fetch items sorted by date descending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment