Hi all,
I am using an ORM, which creates methods for my class using globs, in place.
e.g. __PACKAGE__->has_a('foo'...);
now I have a foo() method defined in my namespace.
I thought that I could use method modifiers to supplement the created methods:
around foo => sub{
.....
};
This failed to work, complaining that the method was not found in the class's
inheritance hierarchy. Is this the expected behavior?
The workaround is easy, changing the original foo to _foo and making
hand-written foo() call it. I am just curious to understand how things are
supposed to work. :-)
Cheers,
Kate