---
title: "Important: Extended ContactRepository::findByPid() signature"
manual: "Academic Contacts for Pages"
version: "main"
source: "Changelog/2.4/Important-ExtendedContactRepositorySignature.rst"
rendered: "2026-09-18T06:17:05+00:00"
---

# Important: Extended `ContactRepository::findByPid()` signature {#important-extended-contactrepository-findbypid-signature}

## Description {#description}

To support the new "Show hidden records" plugin option, the
`\FGTCLB\AcademicContacts4pages\Domain\Repository\ContactRepository`
gained an extended method:

-   `findByPid(int $pid, bool $showHidden = false): QueryResultInterface`
    — the new optional `$showHidden` parameter was appended.

When `$showHidden` is `true`, the query ignores only the
`disabled` (`hidden`) enable field via the Extbase query settings. The
`\FGTCLB\AcademicContacts4pages\Controller\ContactsController` reads
`$this->settings['showHiddenRecords']` and passes it to the
repository.

## Impact {#impact}

The change is non-breaking: the new parameter has a default value, so
existing calls keep working unchanged. Projects that extend or replace
`ContactRepository` should adopt the same signature when overriding
`findByPid()`.

## Affected Installations {#affected-installations}

Only installations that extend or override
`\FGTCLB\AcademicContacts4pages\Domain\Repository\ContactRepository`
need to take the extended signature into account. All other installations
are unaffected.
