Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Class::DBI cascading delete problem?

by gryphon (Abbot)
on Sep 27, 2004 at 16:39 UTC ( [id://394239]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    __PACKAGE__->has_many('PartTypes' => 'MyCDBI::PartType', 'typeid');
  2. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
    my $op4 = MyCDBI::OrgPart->create({ typeid => 4, typeid => $pt2 });
    
    $org->delete;
    
  3. or download this
    CREATE TABLE org (
      orgid tinyint(3) unsigned NOT NULL auto_increment,
      PRIMARY KEY  (orgid)
    ...
      orgid tinyint(3) unsigned default '0',
      PRIMARY KEY  (typeid)
    ) TYPE=MyISAM;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://394239]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 13:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found