Skip to content

Koha::Schema::Result::* #7

@MagnusEnger

Description

@MagnusEnger

Hi!

Thanks for creating koha-gitify - it makes Koha even more fun! :-)

I think I have found a problem, though, while doing development on a gitified setup. This is related to DBIC and the stuff in Koha::Schema::Result::*

Specifically, I have:

  • Added some new columns to the "borrowers" table ("syncstatus", amongst others)
  • Re-generated the DBIC Class files with misc/devel/update_dbix_class_files.pl
  • Written a command line script that reads some data from the new columns
  • When I run the script, I get:
    Can't locate object method "syncstatus" via package "Koha::Schema::Result::Borrower" at misc/cronjobs/nl-sync.pl line 85.
  • When I look in Koha/Schema/Result/Borrower.pm the new columns are there, and everything looks good, but I keep getting the error (so it looks like misc/devel/update_dbix_class_files.pl is doing its job)
  • When I do this the error goes away:
    sudo cp Koha/Schema/Result/Borrower.pm /usr/share/koha/lib/Koha/Schema/Result/Borrower.pm

So it looks like DBIC is using the installed files for Koha::Schema::Result::*, instead of the ones in my cloned repo. I have no idea what might be causing this, or even if it is a problem with koha-gitify, but this seemed like the right place to start...

Best regards,
Magnus

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions