[Dbix-class] Difficulties with DBIx::Class inheritance

Justin Guenther jguenther at gmail.com
Mon Jun 26 08:03:22 CEST 2006


On 6/24/06, A. Pagaltzis <pagaltzis at gmx.de> wrote:
>
> I'm going to go out entirely on a lark and say you'll probably be
> able to get what you want quite easily if you use a different
> inheritance tree:
>
>       Foo::User    Foo::Project       <<< Subclasses
>          |\           /|
>          | \         / |
>          |  \       /  |
>   Foo::user  \     /  Foo::project    <<< sqlt generated DBIx::Class classes
>               \   /
>                \ /
>            Foo::Base                  <<< Common functionality

I'm using this exact inheritance pattern in a project I'm working on,
and it's working nicely.

> Regards,
> --
> #Aristotle
> *AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
> &Just->another->Perl->hacker;
>
> _______________________________________________
> List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
> Wiki: http://dbix-class.shadowcatsystems.co.uk/
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
> Searchable Archive: http://www.mail-archive.com/dbix-class@lists.rawmode.org/



More information about the Dbix-class mailing list