Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Jean-Marc Molina
June 9, 2006, 7:22 am
rate this thread
I would appreciate Perl developers comments on the
"ActiveRecord::Associations ER diagram/macros"  Ruby Forum topic and
"Ruby on Rails Associations macro-methods for tying objects together through
foreign"  Usenet message. I don't know much about Ruby and Perl and
wonder how and why the Class:DBI  Perl module is related to the
"ActiveRecord::Associations::ClassMethods"  Ruby module. They both use
the same terminology and I don't think it's a coļncidence.
In fact it's a comment to the "Simplify Business Logic with PHP DataObjects"
 ONLamp.com article that led me on this Perl community : « The greatest
part about it is that you can declare relationships between classes/tables
by indicating that a certain column in your table either is a foreign key
(has_a) or that your table's primary key is referenced from another one
(has_many). All the joins will then happen behind the scenes and you can use
simple accessors to navigate your relations. ». The full comment references
the Class:DBI Perl module and strongly recommand reading the "How to Avoid
Writing Code : Using Template Toolkit and Class::DBI"  Perl.com article.
*  http://www.ruby-forum.com/topic/66010#new
*  http://www.class-dbi.com
*  http://www.onlamp.com/pub/a/php/2004/08/05/dataobjects.html
*  http://www.perl.com/pub/a/2003/07/15/nocode.html