[Koha-bugs] [Bug 30790] Add REST API route to list biblios
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri May 20 09:50:01 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30790
--- Comment #11 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Julian Maurice from comment #10)
> (In reply to Marcel de Rooy from comment #8)
> > + $schema->resultset('Biblio')->delete();
> What is wrong with this ? It's in the tests, inside a transaction.
We try to avoid direct DBIx stuff when having an Koha object.
Yes, this may be faster. But Koha objects abstract the DBIx.
So here you could simply do Koha::Biblios->delete.
Like:
t/db_dependent/HoldsQueue.t: Koha::Biblios->delete();
But found:
t/db_dependent/Koha/BiblioUtils/Iterator.t:$schema->resultset('Biblio')->delete();
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list