Skip to content

Instantly share code, notes, and snippets.

View achilleskineur's full-sized avatar

Achille NJOMO achilleskineur

View GitHub Profile
@achilleskineur
achilleskineur / EntityRepository.php
Last active July 11, 2018 13:29 — forked from roukmoute/EntityRepository.php
Concrete example of WHERE...IN subquery in doctrine 2
<?php
class MyRepository extends EntityRepository
{
public function whereInSubQuery(User $user)
{
$queryBuilder = $this->createQueryBuilder('my_repository');
$queryBuilder
->where(
$queryBuilder->expr()->in(