[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 15:04:14 CEST 2016


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

--- Comment #3 from Kyle M Hall <kyle at bywatersolutions.com> ---
(In reply to Jonathan Druart from comment #2)

Yes, I do agree with your points. I'm on the fence post about this. I think
there is a possibility of confusion, but I think the ability of being able to
drop objects into legacy code may outweigh those problems in the short term.
Long term we should definitely work to using our objects properly. Unblessed is
very useful, but as soon as you unbless an object it loses all its powers. If
we were to add this feature I think it would be safest to only use it at the
script level, and not in our modules. It would provide incredible benefits in
some of our scripts where switching the code to objects is very non-trivial due
to all the processing, munching and additions to hashrefs that take place.

I'll bring it up at the next dev meeting so we can get a general consensus as
to if this is a worthwhile feature to pursue. I'm fine with the decision going
either way.

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


More information about the Koha-bugs mailing list