[Dbix-class] belongs_to naming
Jess Robinson
castaway at desert-island.demon.co.uk
Mon Jan 23 10:17:08 CET 2006
Hi folks,
On my way to work this morning, for some reason, I was pondering why
"belongs_to" is so named. It seems a bit contrary to the rest, which are
all from the POV of the current class/item. "This item has_many Foos"
makes more sense to me than "This item belongs_to Bar", what its really
saying is "This field belongs_to bar"..
I may be a bit late, but can I propose "refers_to" or "contains_a" ?
Jess
More information about the Dbix-class
mailing list