diff --git a/src/Entity/JobProfile.php b/src/Entity/JobProfile.php index 4e505fa..1b0f44c 100644 --- a/src/Entity/JobProfile.php +++ b/src/Entity/JobProfile.php @@ -168,7 +168,7 @@ class JobProfile implements BlameableEntityInterface, TimestampableEntityInterfa { // Check licenses $qualifiedByLicenses = true; - if (0 < $this->requiredTrainings->count()) { + if (0 < count($this->requiredLicenses)) { $teamerLicenseTypes = $teamer->getLicenses()->map(function (License $license) { return $license->getType(); })->toArray();