Contao\Controller::getParentRecords PHP Method

getParentRecords() protected method

Return the IDs of all parent records of a particular record
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use Database::getParentRecords() instead.
protected getParentRecords ( integer $intId, string $strTable ) : array
$intId integer The ID of the record
$strTable string The table name
return array An array of parent record IDs
    protected function getParentRecords($intId, $strTable)
    {
        @trigger_error('Using Controller::getParentRecords() has been deprecated and will no longer work in Contao 5.0. Use Database::getParentRecords() instead.', E_USER_DEPRECATED);
        return $this->Database->getParentRecords($intId, $strTable);
    }