[Dbix-class] ISA Relationship
Sherwin D'Souza
Sherwin.Dsouza at bbc.co.uk
Mon Aug 21 16:46:17 CEST 2006
That's great, that helps a lot.
Thanks,
Sherwin
Nigel Metheringham wrote:
> On Mon, 2006-08-21 at 14:01 +0100, Sherwin D'Souza wrote:
>> Is there relationships similar to Class::DBI::Relationship::IsA in
>> DBIx, such that
>>
>> e.g. Table: Window columns (window_id title keywords)
>> CircleWindow columns (window_id radius
>> border_width)
>>
>> $circlewindow->radius;
>> $circlewindow->title;
>> $circlewindow->keywords;
>>
>
> You could do
CircleWindow->belongs_to(window_id => 'Window', undef, { proxy
=> [ qw/title keywords/ ] });
would add the title and keyword methods for you as well.
http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately. Please note that the
BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
More information about the Dbix-class
mailing list