[Koha-bugs] [Bug 15759] Allow Koha::Object derived objects to be used as hashrefs

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jun 27 14:03:45 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15759

--- Comment #2 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
This is an interesting approach, but I am not sure it will be good in the long
term.
At the moment, when we see ->method we know we are manipulating an object, and
with ->{key} that we are manipulating a hashref.
With this patch, we will never know easily.
It will permit an easier and quicker switch to Koha::Objects in several areas,
but it will hide the job to be done.

We should at least warn/carp or use Koha::Log (debug) to know the places it is
treated as a hashref.
My thinking is still that that can be achieve (less easily but less magic)
using ->unblessed.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list