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

--- Comment #1 from Paul Poulain <[email protected]> ---
Created attachment 10473
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10473&action=edit
DBIx::Class 1st step: the schema

This DBIx::Class schema has been generated using
perl -MDBIx::Class::Schema::Loader=make_schema_at,dump_to_dir:.Koha -e
'make_schema_at("temp::Schema", { debug => 1 }, [
"dbi:mysql:dbname=Koha","LOGIN", "PASSWORD" ])'

After my 1st tests, I encountered the following problem
DBIx::Class::Carp::__ANON__(): "might_have/has_one" must not be on columns with
is_nullable set to true (temp::Schema::Result::Borrower/cardnumber). This might
indicate an incorrect use of those relationship helpers instead of belongs_to.
at /usr/share/perl5/DBIx/Class/Relationship/HasOne.pm line 96
by setting cardnumber to non-nullable

I've switched the cardnumber to non-nullable in Borrower.pm

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://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