[Dbix-class] How to represent this ?
myshare
mraptor at gmail.com
Thu Jun 28 07:05:13 GMT 2007
hi,
How can I represent the following thing in DBIx::Class :
table rel
------------------
pk_id, table_ref, other_table_id
and then I can have other tables like this :
table_blah, table_another_one, table_foo, table_bar
where table_ref is an integer that tells which table I'm relating to i.e. if
%table_ref = {
1 => table_blah,
2 => table_another_one,
3 => table_foo,
4 => table_bar
}
So how you will represent this in dbix-class ? I preffer the ref-table
that do the translation to
be a hash (like I shown here), instead of a table in the database ...
as you may suspect there wouldn't be thousand such tables.
More information about the Dbix-class
mailing list