[Dbix-class] Adding a relationship at runtime.
Matt S Trout
dbix-class at trout.me.uk
Mon Jun 4 15:23:23 GMT 2007
On Mon, Jun 04, 2007 at 02:19:55PM +0400, Oleg Pronin wrote:
> After the schema has been created i want to add a relationship.
> But it doesn't do register_relationship because $schema->source('User') is
> an 'DBIx::Class::ResultSource::Table' object and it has no
> 'DBIx::Class::ResultSourceProxy' in MRO which does.
> If i add relationship to result class then it won't affect my schema because
> it have already made the copies of sources.
> How to?
There are a few possibilities. Step back from what you're having trouble
implementing and tell us what you're trying to achieve.
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director Want a managed development or deployment platform?
Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote
More information about the Dbix-class