Rants

General thoughts

DBIx::Class::Relationship::Predicate

| 0 Comments | 1 TrackBack

DBIx::Class::Relationship::Predicate is a DBIx::Class component that automatically creates predicates for relationship accessors in a result class. By default, it builds "has_${rel_accessor_name}" methods and injects into the class. You can define the name for each one (or also disable its creation using undef as value) by setting 'predicate' key in the relationship's attributes hashref.