[Dbix-class] Re: Reusing defined columns (inheritance?)
Peter Rabbitson
rabbit+dbic at rabbit.us
Sat Jan 4 09:37:26 GMT 2014
On Sat, Jan 04, 2014 at 12:50:58PM +0400, Dmitry Latin wrote:
>
> Class::C3::Componentised::ApplyHooks does the all dirty work (which I
> described in my second message in the thread).
>
>
> So when you do
>
> package DB::Model;
>
> __PACKAGE__->load_components(qw(
> +NAC::Model::DBIC::ResultRole::Auditable ));
>
>
> Then $class->add_columns("create_datetime") (from
> NAC::Model::DBIC::ResultRole::Auditable) will put column into DB::Model (but
> not into NAC::Model::DBIC::ResultRole::Auditable).
>
> PS: Probably it could be usefull to add this info into DBIC::Cookbook.
>
A patch to that effect would be greatly appreciated
More information about the DBIx-Class
mailing list