Re: simple relationship with has_a

[prev] [thread] [next] [Date index for 2004/08/27]

From: Tony Bowden
Subject: Re: simple relationship with has_a
Date: 16:29 on 27 Aug 2004
On Fri, Aug 27, 2004 at 10:52:07AM -0500, Michael Jensen wrote:
> Users
> 	id
> 	username
> 	email
> 	group_id
> Groups
> 	id
> 	name

User->has_a(group_id => 'Group');

print $user->group_id->name;

Tony

simple relationship with has_a
Michael Jensen 15:52 on 27 Aug 2004

Re: simple relationship with has_a
Tony Bowden 16:29 on 27 Aug 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52