Commit | Line | Data |
70d56286 |
1 | use MooseX::Declare; |
2 | |
3 | # how this works: |
4 | # |
5 | # On construction, we hook $self->result_class->result_source_instance |
6 | # if present to get the superclass' source object |
7 | # |
8 | # When attached to a schema, we need to add sources to that schema with |
9 | # appropriate relationships for the foreign keys so the concrete tables |
10 | # get generated |
11 | # |
12 | # We also generate our own view definition using this class' concrete table |
13 | # and the view for the superclass, and stored procedures for the insert, |
14 | # update and delete operations on this view. |
15 | # |
16 | # deploying the postgres rules through SQLT may be a pain though. |
17 | |
18 | class DBIx::Class::ResultSource::MultipleTableInheritance |
19 | extends DBIx::Class::ResultSource::View { |
20 | |
21 | |
22 | |
23 | } |
24 | |
25 | 1; |