{
    "mode": "perldoc",
    "parameter": "Class::DBI::Cascade::None",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Class%3A%3ADBI%3A%3ACascade%3A%3ANone/json",
    "generated": "2026-10-06T16:03:13Z",
    "sections": {
        "NAME": {
            "content": "Class::DBI::Cascade::None - Do nothing upon deletion\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a Cascading Delete strategy that will do nothing, leaving orphaned records behind.\n\nIt is the base class for most ofther Cascade strategies, and so provides several important\nmethods:\n",
            "subsections": []
        },
        "CONSTRUCTOR": {
            "content": "new\nmy $strategy = Cascade::Class->new($Relationship);\n\nThis must be instantiated with a Class::DBI::Relationship object.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "foreignfor\nmy $iterator = $strategy->foreignfor($obj);\n\nThis will return all the objects which are foreign to $obj across the relationship. It's a\nnormal Class::DBI search you can get the results either as a list or as an iterator.\n\ncascade\n$strategy->cascade($obj);\n\nCascade across the related objects to $obj.\n",
            "subsections": []
        },
        "WRITING NEW STRATEGIES": {
            "content": "Creating a Cascade strategy should be fairly simple. You usually just need to inherit from here,\nand then supply a cascade() method that does the required thing with the results from",
            "subsections": [
                {
                    "name": "foreign_for",
                    "content": "So, for example, Cascade::Delete is implemented simply as:\n\npackage Class::DBI::Cascade::Delete;\n\nuse base 'Class::DBI::Cascade::None';\n\nsub cascade {\nmy ($self, $obj) = @;\n$self->foreignfor($obj)->deleteall;\n}\n"
                }
            ]
        }
    },
    "summary": "Class::DBI::Cascade::None - Do nothing upon deletion",
    "flags": [],
    "examples": [],
    "see_also": []
}