It may be useful to be able to instantiate a Koha::Object from data already fetched from the database. This might be used for compatibility with legacy code, or perhaps for use with optimized queries.
Created attachment 87317 [details] [review] Bug 22622: Add Koha::Object method _new_from_hashref It may be useful to be able to instantiate a Koha::Object from data already fetched from the database. This might be used for compatibility with legacy code, or perhaps for use with optimized queries.
Does not apply, seems easy to fix.
Created attachment 100370 [details] [review] Bug 22622: Add Koha::Object method _new_from_hashref It may be useful to be able to instantiate a Koha::Object from data already fetched from the database. This might be used for compatibility with legacy code, or perhaps for use with optimized queries.
With object coming from _new_from_hashref(), sure that in_storage() is true ? Maybe add it to unit test.
It looks like your unit tests no longer cleanly apply.