Unverified Commit a9af04a9 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Display only project with at least 10 elements

parent 30db0e5d
......@@ -94,7 +94,11 @@ class ProjectController extends Controller
$config = $dm->getRepository('App\Document\Configuration')->findConfiguration();
$projects = $repository->findBy(['published' => true], ['publishedAt' => 'DESC']);
$projects = $dm->createQueryBuilder('App\Document\Project')
->field('published')->equals(true)
->field('dataSize')->gte(10)
->sort('publishedAt', 'desc')
->getQuery()->execute();
$pinnedProjects = $repository->findBy(['pinned' => true]);
foreach ($projects as $project) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment