Class->has_many(method_to_create => "Foreign::Class");
This method declares that another table is referencing us (i.e. storing our primary key in its table). It creates a named accessor method in our class which returns a list of all the matching Foreign::Class objects. In addition it creates another method which allows a new associated object to be constructed, taking care of the linking automatically. This method is the same as the accessor method with ``add_to_'' prepended.The syntax that you reference has this to say:
Sometimes we don't want to return an instance of the Foreign::Class, but instead the result of calling a method on that object. We can do this by changing the Foreign::Class declaration to a listref of the Foreign::Class and the method to call on that class.Which I don't fully comprehend.
Have you been high today? I see the nuns are gay! My brother yelled to me...I love you inside Ed - Benny Lava, by Buffalax
In reply to Re^3: Class::DBI: Filtering a many-to-many mapping does not work as advertised on CDBI manpage?
by NetWallah
in thread Class::DBI: Filtering a many-to-many mapping does not work as advertised on CDBI manpage?
by unlinker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |