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

--- Comment #11 from Marcel de Rooy <[email protected]> ---
(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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to