Koha::ActionLog - Koha ActionLog Object class
my $librarian = $log->librarian;
Returns the related Koha::Patron object for the librarian who performed the action, or undef if the user column was not set (e.g. cron jobs).
my $patron = $log->patron;
Returns the related Koha::Patron object joined on the object column. Only meaningful for rows where object is a borrowernumber (MEMBERS, CIRCULATION, FINES and APIKEYS modules); for other modules the join may match an unrelated patron and the caller must filter by module.
my $item = $log->item;
Returns the related Koha::Item for a CIRCULATION log entry, or undef.
The itemnumber is not stored in a dedicated column; it lives inside the info field, which for circulation is either a JSON payload carrying an itemnumber key (ISSUE, RENEWAL) or a bare itemnumber string (RETURN). Returns undef for non-circulation rows, when no itemnumber can be derived, or when the item has since been deleted.