[Koha-bugs] [Bug 21160] C4::Members loads and calls Koha::Schema directly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 20 03:57:38 CEST 2018


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

--- Comment #2 from David Cook <dcook at prosentient.com.au> ---
(In reply to Jonathan Druart from comment #1)
> It means the same, but for consistency we could replace it yes.

Cool. I'll replace it sometime.

I'd argue that it's not quite the same. The main reason I was noticing it was
because "use Koha::Schema" caused the schema to be loaded at compile time
whereas using "use Koha::Database" meant it would load the schema at run time
for a particular code path. I was getting the schema loaded even when I didn't
need it. But that was for CGI. Wouldn't be an issue for Plack.

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


More information about the Koha-bugs mailing list