def addToParent(self, parentRow, rows, tableName):
        parentInfo = self.getTableInfo(parentRow)
        relationship = parentInfo.getRelationshipFor(tableName)
        if not relationship:
            raise DBError("no relationship from %s to %s" % ( parentRow.rowTableName, tableName) )

        if not relationship.containerMethod:
            if hasattr(parentRow, "childRows"):
                for row in rows:
                    if row not in parentRow.childRows:
                        parentRow.childRows.append(row)
            else:
                parentRow.childRows = rows
            return

        if not hasattr(parentRow, relationship.containerMethod):
            raise DBError("parent row (%s) doesnt have container method <%s>!" % (parentRow, relationship.containerMethod))

        meth = getattr(parentRow, relationship.containerMethod)
        for row in rows:
            meth(row)

    ####### Row Cache ########
Reset state to normal for all targets.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/enterprise/reflector.py/Reflector.addToParent--crossover with--dataset/ETHPy150Open klen/graphite-beacon/graphite_beacon/alerts.py/BaseAlert.reset