Help for this page

Select Code to Download


  1. or download this
    package My::Actor;
    ...
    My::Actor->has_many( 'roles', 'My::Actor::Role', 'actor' );
    
  2. or download this
    package Sub::Person;
    use base qw(Super::Person);
    __PACKAGE__->has_many( 'organisations', 'Sub::Organisation', 'person' 
    +);
    
  3. or download this
    package Super::Person;
    use base qw(Class::DBI);
    __PACKAGE__->table('people');
    __PACKAGE__->has_many( 'sessions', 'Super::Session', 'person' );
    ...