Re: [Dbix-class] missing 'many-to-many' relationship

2010-08-04 Thread Len Jaffe
On Wed, Aug 4, 2010 at 1:04 PM, fREW Schmidt wrote: > > Anyone wanna chime in on why m2m isn't a real rel? > Because an m2m relationship is an model of two one-to-many relationships which share a table. I expect that related_resultset() could be made to handle m2m relationships with a little el

Re: [Dbix-class] missing 'many-to-many' relationship

2010-08-04 Thread fREW Schmidt
> So to be clear, you are saying that you added the roles many to many in >> user and you do $user->roles and get that error? >> >> I'm guessing you did something like $user->related_resultset('roles'), >> which wouldn't work since technically m2m isn't a relationship. >> >> That's exactly what I'

Re: [Dbix-class] missing 'many-to-many' relationship

2010-08-04 Thread Steve
On 8/4/2010 10:46 AM, fREW Schmidt wrote: On Wed, Aug 4, 2010 at 7:34 AM, Steve > wrote: Hi all, I am bewildered as to why my 'many_to_many' relationship is being ignored. I get an error when trying to use the relationship bec

Re: [Dbix-class] missing 'many-to-many' relationship

2010-08-04 Thread fREW Schmidt
On Wed, Aug 4, 2010 at 7:34 AM, Steve wrote: > Hi all, > >> I am bewildered as to why my 'many_to_many' relationship is being >>> ignored. >>> I get an error when trying to use the relationship because it 'does not >>> exist', >>> and clearly it doesn't. WHY? >>> My result classes are 'User.pm'

Re: [Dbix-class] missing 'many-to-many' relationship

2010-08-04 Thread Steve
Hi all, I am bewildered as to why my 'many_to_many' relationship is being ignored. I get an error when trying to use the relationship because it 'does not exist', and clearly it doesn't. WHY? My result classes are 'User.pm', 'Role.pm', and 'UserRole.pm'. I'm using the DBIC::Loader to generate th

Re: [Dbix-class] missing 'many-to-many' relationship

2010-08-03 Thread fREW Schmidt
On Tue, Aug 3, 2010 at 8:04 AM, Steve wrote: > Hi all, > I am bewildered as to why my 'many_to_many' relationship is being ignored. > I get an error when trying to use the relationship because it 'does not > exist', > and clearly it doesn't. WHY? > My result classes are 'User.pm', 'Role.pm', and

[Dbix-class] missing 'many-to-many' relationship

2010-08-03 Thread Steve
Hi all, I am bewildered as to why my 'many_to_many' relationship is being ignored. I get an error when trying to use the relationship because it 'does not exist', and clearly it doesn't. WHY? My result classes are 'User.pm', 'Role.pm', and 'UserRole.pm'. I'm using the DBIC::Loader to generate t