protected function getUniversalWhereClause($allowHiddenRecords = false)
    {
        $tableName = $this->getTableName();
        if ($this->testingFramework !== null) {
            $dummyColumnName = $this->testingFramework->getDummyColumnName($tableName);
            $leftPart = \Tx_Oelib_Db::tableHasColumn($this->getTableName(), $dummyColumnName)
                ? $dummyColumnName . ' = 1' : '1 = 1';
        } else {
            $leftPart = '1 = 1';
        }
        return $leftPart . \Tx_Oelib_Db::enableFields($tableName, ($allowHiddenRecords ? 1 : -1));
    }