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