1 package Common
::RDBO
::Helper
::Comment
;
6 use Rose
::Object
::MixIn
();
7 our @ISA = qw(Rose::Object::MixIn);
9 __PACKAGE__
->export_tag( all
=> [ qw
/ master comment_count / ] );
11 use Rose
::Object
::MakeMethods
::Generic
( scalar => [ qw
/ comment_count / ] );
16 if ( $self->can( 'type' ) ) {
17 my $type = $self->type;
21 grep { $_->type eq 'many to one' } $self->meta->relationships;
24 my $master = $rel->name;
26 return $self->$master;
36 This library is free software, you can redistribute it and/or modify
37 it under the same terms as Perl itself.