Re: [CDBI] has_a relationship with non-primary column?
"Praveen Hombaiah" <[email protected]> Thu, 6 Sep 2007 23:35:00 +0000
| Newsgroups | gmane.comp.lang.perl.modules.class-dbi |
|---|---|
| Message-ID | <[email protected]> |
> >> # Is it possible to link this relationship with employee.desired_column > >> instead of > >> # employee.real_pk? > >> __PACKAGE__->has_a( department => 'Department' ); > > >The first argument to has_a is the column name, so that should be > >'desired_column', not 'department.' Isn't the first argument the column(of this class ie department ) that stores the value of the PK of the "other" class? Is it possible to store the non-pk value of the "other" class in the column and indicate that in the has_a declaration somehow? Thanks so much for your time/expertise. -- Regards, Praveen Hombaiah. _______________________________________________ ClassDBI mailing list ClassDBI-Ra3b/[email protected] http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi