Skip to content

Commit

Permalink
[TASK] Fix translation synchronisation
Browse files Browse the repository at this point in the history
  • Loading branch information
torben-fr committed Oct 17, 2024
1 parent 657e907 commit 35897e3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Classes/Domain/Repository/AddressRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
namespace Fgtclb\AcademicPersonsEdit\Domain\Repository;

use Fgtclb\AcademicPersonsEdit\Domain\Model\Address;
use Fgtclb\AcademicPersons\Domain\Model\OrganisationalUnit;
use TYPO3\CMS\Extbase\Domain\Model\Category;
use TYPO3\CMS\Extbase\Persistence\QueryInterface;
use TYPO3\CMS\Extbase\Persistence\QueryResultInterface;
Expand All @@ -28,15 +27,19 @@ class AddressRepository extends Repository
*/
public function getAddressFromOrganisation(
?Category $employeeType,
?OrganisationalUnit $organisationalUnit
?Category $organizationalLevel1,
?Category $organizationalLevel2,
?Category $organizationalLevel3,
): QueryResultInterface {
$query = $this->createQuery();
$query->getQuerySettings()->setRespectStoragePage(false);

$query->matching(
$query->logicalAnd([
$query->equals('employeeType', $employeeType),
$query->equals('organisationalUnit', $organisationalUnit),
$query->equals('organisationalLevel1', $organizationalLevel1),
$query->equals('organisationalLevel2', $organizationalLevel2),
$query->equals('organisationalLevel3', $organizationalLevel3),
])
);
$query->setOrderings([
Expand Down

0 comments on commit 35897e3

Please sign in to comment.