[Dbix-class] Adding a relationship at runtime.
Oleg Pronin
syber.rus at gmail.com
Mon Jun 4 11:19:55 GMT 2007
After the schema has been created i want to add a relationship.
$schema->source('User')->add_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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20070604/0c3=
d31cc/attachment.htm
More information about the Dbix-class
mailing list