Re: [Dbix-class] What would cause has_many relation accessor to query and return objects using the wrong table/class ?

2008-07-30 Thread Matt S Trout
On Tue, Jul 29, 2008 at 11:21:30AM +0100, Aaron Trevena wrote: 2008/7/28 Matt S Trout [EMAIL PROTECTED]: On Mon, Jul 28, 2008 at 03:49:16PM +0100, Aaron Trevena wrote: Hi All, I have a peculiar problem. I've defined a bunch of has_many relations, but when I call them an object they

Re: [Dbix-class] What would cause has_many relation accessor to query and return objects using the wrong table/class ?

2008-07-29 Thread Aaron Trevena
2008/7/28 Matt S Trout [EMAIL PROTECTED]: On Mon, Jul 28, 2008 at 03:49:16PM +0100, Aaron Trevena wrote: Hi All, I have a peculiar problem. I've defined a bunch of has_many relations, but when I call them an object they use the it's own table and class... I think you've somehow registered

[Dbix-class] What would cause has_many relation accessor to query and return objects using the wrong table/class ?

2008-07-28 Thread Aaron Trevena
Hi All, I have a peculiar problem. I've defined a bunch of has_many relations, but when I call them an object they use the it's own table and class... i.e. --- package CustomField; ... __PACKAGE__-has_many(custom_field_values = 'CustomFieldValue', { 'foreign.custom_field_id' =

Re: [Dbix-class] What would cause has_many relation accessor to query and return objects using the wrong table/class ?

2008-07-28 Thread Jess Robinson
On Mon, 28 Jul 2008, Aaron Trevena wrote: Hi All, I have a peculiar problem. I've defined a bunch of has_many relations, but when I call them an object they use the it's own table and class... i.e. --- package CustomField; ... __PACKAGE__-has_many(custom_field_values = 'CustomFieldValue',