porton
porton

Reputation: 5801

DBIx::Class::Schema::Loader using different namespace for table relationships

I want DBIx::Class::Schema::Loader to create a class (say OurSchemaBase::*) for each of my tables.

Then I want to derive each of these classes and put them in, say, OurSchema::* and I want the relationship to point to my derived class not to the autogenerated base class.

Can I make DBIx::Class::Schema::Loader create relationships in OurSchemaBase::* to OurSchema::* classes instead of to OurSchemaBase::* classes?

Is this possible with DBIx::Class::Schema::Loader?

Upvotes: 0

Views: 53

Answers (1)

Alexander Hartmaier
Alexander Hartmaier

Reputation: 2204

Nothing related directly to Schema::Loader, check out https://metacpan.org/pod/DBIx::Class::Helper::Row::SubClass.

Upvotes: 1

Related Questions