fix: reversed join
This commit is contained in:
@@ -4,8 +4,8 @@ namespace App\Repository;
|
|||||||
|
|
||||||
use App\Entity\Application;
|
use App\Entity\Application;
|
||||||
use App\Entity\Assignment;
|
use App\Entity\Assignment;
|
||||||
|
use App\Entity\JobProfile;
|
||||||
use App\Entity\Teamer;
|
use App\Entity\Teamer;
|
||||||
use App\Entity\Training;
|
|
||||||
use App\Model\AssignmentFilterDto;
|
use App\Model\AssignmentFilterDto;
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||||
use Doctrine\ORM\Query;
|
use Doctrine\ORM\Query;
|
||||||
@@ -92,9 +92,9 @@ class AssignmentRepository extends ServiceEntityRepository
|
|||||||
$subQb = $this->getEntityManager()->createQueryBuilder();
|
$subQb = $this->getEntityManager()->createQueryBuilder();
|
||||||
$subQb
|
$subQb
|
||||||
->select('1')
|
->select('1')
|
||||||
->from(Training::class, 'rt')
|
->from(JobProfile::class, 'jp2')
|
||||||
->join('rt.jobProfiles', 'jp')
|
->join('jp2.requiredTrainings', 'rt')
|
||||||
->where('jp = job_profile')
|
->where('jp2 = job_profile')
|
||||||
;
|
;
|
||||||
|
|
||||||
$qb
|
$qb
|
||||||
|
|||||||
Reference in New Issue
Block a user