Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Class::DBI and DB design

by tunaboy (Curate)
on Jun 06, 2003 at 22:15 UTC ( #263874=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package My::User;
    
    ...
    __PACKAGE__->has_a( 'user' => 'My::User' );
    __PACKAGE__->has_a( 'capability' => 'My::Capability' );
    
  2. or download this
    foreach ( $user->capabilities() ) {
        print $_->capability->name(), "\n";
    }
    
  3. or download this
    foreach ( $capability->users() ) {
        print $_->user->name(), "\n";
    }
    
  4. or download this
    sub get_capabilities {
        my ( $self ) = @_;
    ...
    
        return map { $_->capability->name() } @capabilities;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2016-06-26 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (328 votes). Check out past polls.