[Koha-bugs] [Bug 11518] Add new method to Koha::Schema::Result::Item that will always return the correct itemtype

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 28 12:47:13 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11518

--- Comment #28 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
There still is some discussion about it (see IRC):

Why do we use $self->biblioitemnumber()->itemtype() ?
$self->biblioitem->itemtype would be nicer.

My answer would be: Since the relation is called biblioitemnumber, we need to
use that. Using the default relation name from DBIx is easier than adding names
everywhere. Same for e.g. $biblioitem->biblionumber() instead of biblio. The
generated relation is called biblionumber..

My question is: can we somehow get DBIx to define these relations with the
names we like more without adding relation or code in the custom sections
everywhere?

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


More information about the Koha-bugs mailing list