core-bundle/src/Resources/contao/library/Contao/Controller.php
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);
	}
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);
	}
Return the IDs of all parent records of a particular record

@param integer $intId    The ID of the record
@param string  $strTable The table name

@return array An array of parent record IDs

@deprecated Deprecated since Contao 4.0, to be removed in Contao 5.0.
Use Database::getParentRecords() instead.