Re: [Catalyst] Model objects from multiple DBIx::Class rows

2012-11-22 Thread Stephen Shorrock
On Thu, Nov 22, 2012 at 5:20 PM, Will Crawford wrote: > > > > On 22 November 2012 17:03, Stephen Shorrock > wrote: >> >> Hi Lukas, >> >> Firstly thanks and secondly I take your point regarding the relationships. >> >> It seems sensible that I should create an object to manipulate a >> Montage rat

Re: [Catalyst] Model objects from multiple DBIx::Class rows

2012-11-22 Thread Will Crawford
On 22 November 2012 17:03, Stephen Shorrock wrote: > Hi Lukas, > > Firstly thanks and secondly I take your point regarding the relationships. > > It seems sensible that I should create an object to manipulate a > Montage rather than methods attached to other objects that seem to be > modifying som

Re: [Catalyst] Model objects from multiple DBIx::Class rows

2012-11-22 Thread Stephen Shorrock
Hi Lukas, Firstly thanks and secondly I take your point regarding the relationships. It seems sensible that I should create an object to manipulate a Montage rather than methods attached to other objects that seem to be modifying something virtual. For example a Montage might have a period assoc

Re: [Catalyst] Model objects from multiple DBIx::Class rows

2012-11-22 Thread Lukas Thiemeier
Hi Stephen, As far as I know, creating result class without underlying table is not supported. Having a class without table, but with relationships doesn't realy make sense to me. A relationship always has two sides. I am not sure if I really understand your problem. You have a "user" table and