[Dbix-class] belongs_to naming

Mike Rylander mrylander at gmail.com
Mon Jan 23 15:08:19 CET 2006


On 1/23/06, Jess Robinson <castaway at desert-island.demon.co.uk> wrote:
>
> 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" ?

Or even -- *gasp*, SQL teminology! -- "references".   ;-)

>
> Jess
>
>
> _______________________________________________
> List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
> Wiki: http://dbix-class.shadowcatsystems.co.uk/
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
>


--
Mike Rylander
mrylander at gmail.com
GPLS -- PINES Development
Database Developer
http://open-ils.org



More information about the Dbix-class mailing list