Skip to content

Instantly share code, notes, and snippets.

@wowo
Created Sep 11, 2020
Embed
What would you like to do?
<?php
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