in reply to Re^5: Question about __PACKAGE__
in thread Question about __PACKAGE__

I got your point. I guess I can change class Item to inherit from DBIx::Class::Core instead of DBIx::Class and comment out this line :
__PACKAGE__->load_components( "InflateColumn::DateTime", "Core" );
Am I right?

Replies are listed 'Best First'.
Re^7: Question about __PACKAGE__
by ikegami (Patriarch) on Jan 22, 2010 at 22:33 UTC

    I can change class Item to inherit from DBIx::Class::Core instead of DBIx::Class

    Why would you do that?

    In your previous post, you showed that you weren't inheriting from DBIx::Class, so why do you say "instead"?

      I have this assertion because seems the following line's function is to add additional base classes to the child class when child class is loaded. So I guess if I declared this inheritance relationship using 'extends' in the beginning, then I do not need to load it using this line. Am I right?
      _PACKAGE__->load_components( "InflateColumn::DateTime", "Core" );
        That sounds like a question. It definitely does not answer the question. You've been expressing so much doubt about doing it, but you can't even give a reason for doing it in the first place, so don't do it.