Re: [Catalyst] Specifying relationships once

2009-03-14 Thread Ascii King
That's perfect. Thank you. Richard Thomas wrote: We do something along those lines - although for very different reasons - our has_a and has_many relationships are defined in the Model.pm, not the individual tables' modules, ie This::Table-has_a(this_col = That::Table);

[Catalyst] Specifying relationships once

2009-03-13 Thread Ascii King
Is there some way to place all of the relationship specifications into a file so that I don't have to go out and type them in each time? For example, I can specify a bunch of SQL commands in a text file and have sqlite3 read them and turn them into a database full of data. Now I want to have

Re: [Catalyst] Specifying relationships once

2009-03-13 Thread Richard Thomas
We do something along those lines - although for very different reasons - our has_a and has_many relationships are defined in the Model.pm, not the individual tables' modules, ie This::Table-has_a(this_col = That::Table); That::Table-has_many(that_col = This::Table); The reason for this is