Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: One to many, many to one relationships

by rvosa (Curate)
on Mar 12, 2007 at 17:45 UTC ( [id://604406]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    One-to-many:
    taxon ---> node
    ...
    
    One-to-one:
    sequence ---> taxon
    
  2. or download this
    my @nodes = $taxon->get_nodes;
    my @sequences = $taxon->get_sequences;
    my $taxon = $node->get_taxon;
    $taxon = $sequence->get_taxon;
    
  3. or download this
    $node->set_taxon( $taxon );
    
  4. or download this
    sub set_taxon {
        my ( $node, $taxon ) = @_;
    ...
        $taxon->add_node( $node );
        return $node;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-19 06:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found