|
Lines 1-21
Link Here
|
| 1 |
use utf8; |
|
|
| 2 |
package Koha::Schema::Result::Borrower; |
1 |
package Koha::Schema::Result::Borrower; |
| 3 |
|
2 |
|
| 4 |
# Created by DBIx::Class::Schema::Loader |
3 |
# Created by DBIx::Class::Schema::Loader |
| 5 |
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
4 |
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
| 6 |
|
5 |
|
| 7 |
=head1 NAME |
|
|
| 8 |
|
| 9 |
Koha::Schema::Result::Borrower |
| 10 |
|
| 11 |
=cut |
| 12 |
|
| 13 |
use strict; |
6 |
use strict; |
| 14 |
use warnings; |
7 |
use warnings; |
| 15 |
|
8 |
|
| 16 |
use base 'DBIx::Class::Core'; |
9 |
use base 'DBIx::Class::Core'; |
| 17 |
|
10 |
|
| 18 |
=head1 TABLE: C<borrowers> |
11 |
|
|
|
12 |
=head1 NAME |
| 13 |
|
| 14 |
Koha::Schema::Result::Borrower |
| 19 |
|
15 |
|
| 20 |
=cut |
16 |
=cut |
| 21 |
|
17 |
|
|
Lines 201-207
__PACKAGE__->table("borrowers");
Link Here
|
| 201 |
=head2 dateofbirth |
197 |
=head2 dateofbirth |
| 202 |
|
198 |
|
| 203 |
data_type: 'date' |
199 |
data_type: 'date' |
| 204 |
datetime_undef_if_invalid: 1 |
|
|
| 205 |
is_nullable: 1 |
200 |
is_nullable: 1 |
| 206 |
|
201 |
|
| 207 |
=head2 branchcode |
202 |
=head2 branchcode |
|
Lines 223-235
__PACKAGE__->table("borrowers");
Link Here
|
| 223 |
=head2 dateenrolled |
218 |
=head2 dateenrolled |
| 224 |
|
219 |
|
| 225 |
data_type: 'date' |
220 |
data_type: 'date' |
| 226 |
datetime_undef_if_invalid: 1 |
|
|
| 227 |
is_nullable: 1 |
221 |
is_nullable: 1 |
| 228 |
|
222 |
|
| 229 |
=head2 dateexpiry |
223 |
=head2 dateexpiry |
| 230 |
|
224 |
|
| 231 |
data_type: 'date' |
225 |
data_type: 'date' |
| 232 |
datetime_undef_if_invalid: 1 |
|
|
| 233 |
is_nullable: 1 |
226 |
is_nullable: 1 |
| 234 |
|
227 |
|
| 235 |
=head2 gonenoaddress |
228 |
=head2 gonenoaddress |
|
Lines 245-251
__PACKAGE__->table("borrowers");
Link Here
|
| 245 |
=head2 debarred |
238 |
=head2 debarred |
| 246 |
|
239 |
|
| 247 |
data_type: 'date' |
240 |
data_type: 'date' |
| 248 |
datetime_undef_if_invalid: 1 |
|
|
| 249 |
is_nullable: 1 |
241 |
is_nullable: 1 |
| 250 |
|
242 |
|
| 251 |
=head2 debarredcomment |
243 |
=head2 debarredcomment |
|
Lines 493-499
__PACKAGE__->add_columns(
Link Here
|
| 493 |
"B_phone", |
485 |
"B_phone", |
| 494 |
{ accessor => "b_phone", data_type => "mediumtext", is_nullable => 1 }, |
486 |
{ accessor => "b_phone", data_type => "mediumtext", is_nullable => 1 }, |
| 495 |
"dateofbirth", |
487 |
"dateofbirth", |
| 496 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
488 |
{ data_type => "date", is_nullable => 1 }, |
| 497 |
"branchcode", |
489 |
"branchcode", |
| 498 |
{ |
490 |
{ |
| 499 |
data_type => "varchar", |
491 |
data_type => "varchar", |
|
Lines 511-525
__PACKAGE__->add_columns(
Link Here
|
| 511 |
size => 10, |
503 |
size => 10, |
| 512 |
}, |
504 |
}, |
| 513 |
"dateenrolled", |
505 |
"dateenrolled", |
| 514 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
506 |
{ data_type => "date", is_nullable => 1 }, |
| 515 |
"dateexpiry", |
507 |
"dateexpiry", |
| 516 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
508 |
{ data_type => "date", is_nullable => 1 }, |
| 517 |
"gonenoaddress", |
509 |
"gonenoaddress", |
| 518 |
{ data_type => "tinyint", is_nullable => 1 }, |
510 |
{ data_type => "tinyint", is_nullable => 1 }, |
| 519 |
"lost", |
511 |
"lost", |
| 520 |
{ data_type => "tinyint", is_nullable => 1 }, |
512 |
{ data_type => "tinyint", is_nullable => 1 }, |
| 521 |
"debarred", |
513 |
"debarred", |
| 522 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
514 |
{ data_type => "date", is_nullable => 1 }, |
| 523 |
"debarredcomment", |
515 |
"debarredcomment", |
| 524 |
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
516 |
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
| 525 |
"contactname", |
517 |
"contactname", |
|
Lines 577-604
__PACKAGE__->add_columns(
Link Here
|
| 577 |
"privacy", |
569 |
"privacy", |
| 578 |
{ data_type => "integer", default_value => 1, is_nullable => 0 }, |
570 |
{ data_type => "integer", default_value => 1, is_nullable => 0 }, |
| 579 |
); |
571 |
); |
|
|
572 |
__PACKAGE__->set_primary_key("borrowernumber"); |
| 573 |
__PACKAGE__->add_unique_constraint("cardnumber", ["cardnumber"]); |
| 580 |
|
574 |
|
| 581 |
=head1 PRIMARY KEY |
575 |
=head1 RELATIONS |
| 582 |
|
576 |
|
| 583 |
=over 4 |
577 |
=head2 accountlines_borrowernumbers |
| 584 |
|
578 |
|
| 585 |
=item * L</borrowernumber> |
579 |
Type: has_many |
| 586 |
|
580 |
|
| 587 |
=back |
581 |
Related object: L<Koha::Schema::Result::Accountline> |
| 588 |
|
582 |
|
| 589 |
=cut |
583 |
=cut |
| 590 |
|
584 |
|
| 591 |
__PACKAGE__->set_primary_key("borrowernumber"); |
585 |
__PACKAGE__->has_many( |
| 592 |
|
586 |
"accountlines_borrowernumbers", |
| 593 |
=head1 UNIQUE CONSTRAINTS |
587 |
"Koha::Schema::Result::Accountline", |
| 594 |
|
588 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 595 |
=head2 C<cardnumber> |
589 |
{ cascade_copy => 0, cascade_delete => 0 }, |
|
|
590 |
); |
| 596 |
|
591 |
|
| 597 |
=over 4 |
592 |
=head2 accountlines_borrowernumbers |
| 598 |
|
593 |
|
| 599 |
=item * L</cardnumber> |
594 |
Type: has_many |
| 600 |
|
595 |
|
| 601 |
=back |
596 |
Related object: L<Koha::Schema::Result::Accountline> |
| 602 |
|
597 |
|
| 603 |
=cut |
598 |
=cut |
| 604 |
|
599 |
|
|
Lines 618-639
__PACKAGE__->add_unique_constraint("userid", ["userid"]);
Link Here
|
| 618 |
|
613 |
|
| 619 |
=head1 RELATIONS |
614 |
=head1 RELATIONS |
| 620 |
|
615 |
|
| 621 |
=head2 accountlines |
616 |
=head2 accountoffsets_borrowernumbers |
| 622 |
|
617 |
|
| 623 |
Type: has_many |
618 |
Type: has_many |
| 624 |
|
619 |
|
| 625 |
Related object: L<Koha::Schema::Result::Accountline> |
620 |
Related object: L<Koha::Schema::Result::Accountoffset> |
| 626 |
|
621 |
|
| 627 |
=cut |
622 |
=cut |
| 628 |
|
623 |
|
| 629 |
__PACKAGE__->has_many( |
624 |
__PACKAGE__->has_many( |
| 630 |
"accountlines", |
625 |
"accountoffsets_borrowernumbers", |
| 631 |
"Koha::Schema::Result::Accountline", |
626 |
"Koha::Schema::Result::Accountoffset", |
| 632 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
627 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 633 |
{ cascade_copy => 0, cascade_delete => 0 }, |
628 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 634 |
); |
629 |
); |
| 635 |
|
630 |
|
| 636 |
=head2 accountoffsets |
631 |
=head2 accountoffsets_borrowernumbers |
| 637 |
|
632 |
|
| 638 |
Type: has_many |
633 |
Type: has_many |
| 639 |
|
634 |
|
|
Lines 642-654
Related object: L<Koha::Schema::Result::Accountoffset>
Link Here
|
| 642 |
=cut |
637 |
=cut |
| 643 |
|
638 |
|
| 644 |
__PACKAGE__->has_many( |
639 |
__PACKAGE__->has_many( |
| 645 |
"accountoffsets", |
640 |
"accountoffsets_borrowernumbers", |
| 646 |
"Koha::Schema::Result::Accountoffset", |
641 |
"Koha::Schema::Result::Accountoffset", |
| 647 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
642 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 648 |
{ cascade_copy => 0, cascade_delete => 0 }, |
643 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 649 |
); |
644 |
); |
| 650 |
|
645 |
|
| 651 |
=head2 aqbasketusers |
646 |
=head2 aqbasketusers_borrowernumbers |
| 652 |
|
647 |
|
| 653 |
Type: has_many |
648 |
Type: has_many |
| 654 |
|
649 |
|
|
Lines 657-669
Related object: L<Koha::Schema::Result::Aqbasketuser>
Link Here
|
| 657 |
=cut |
652 |
=cut |
| 658 |
|
653 |
|
| 659 |
__PACKAGE__->has_many( |
654 |
__PACKAGE__->has_many( |
| 660 |
"aqbasketusers", |
655 |
"aqbasketusers_borrowernumbers", |
| 661 |
"Koha::Schema::Result::Aqbasketuser", |
656 |
"Koha::Schema::Result::Aqbasketuser", |
| 662 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
657 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 663 |
{ cascade_copy => 0, cascade_delete => 0 }, |
658 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 664 |
); |
659 |
); |
| 665 |
|
660 |
|
| 666 |
=head2 aqbudgetborrowers |
661 |
=head2 aqbasketusers_borrowernumbers |
|
|
662 |
|
| 663 |
Type: has_many |
| 664 |
|
| 665 |
Related object: L<Koha::Schema::Result::Aqbasketuser> |
| 666 |
|
| 667 |
=cut |
| 668 |
|
| 669 |
__PACKAGE__->has_many( |
| 670 |
"aqbasketusers_borrowernumbers", |
| 671 |
"Koha::Schema::Result::Aqbasketuser", |
| 672 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 673 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 674 |
); |
| 675 |
|
| 676 |
=head2 aqbudgetborrowers_borrowernumbers |
| 677 |
|
| 678 |
Type: has_many |
| 679 |
|
| 680 |
Related object: L<Koha::Schema::Result::Aqbudgetborrower> |
| 681 |
|
| 682 |
=cut |
| 683 |
|
| 684 |
__PACKAGE__->has_many( |
| 685 |
"aqbudgetborrowers_borrowernumbers", |
| 686 |
"Koha::Schema::Result::Aqbudgetborrower", |
| 687 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 688 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 689 |
); |
| 690 |
|
| 691 |
=head2 aqbudgetborrowers_borrowernumbers |
| 667 |
|
692 |
|
| 668 |
Type: has_many |
693 |
Type: has_many |
| 669 |
|
694 |
|
|
Lines 672-684
Related object: L<Koha::Schema::Result::Aqbudgetborrower>
Link Here
|
| 672 |
=cut |
697 |
=cut |
| 673 |
|
698 |
|
| 674 |
__PACKAGE__->has_many( |
699 |
__PACKAGE__->has_many( |
| 675 |
"aqbudgetborrowers", |
700 |
"aqbudgetborrowers_borrowernumbers", |
| 676 |
"Koha::Schema::Result::Aqbudgetborrower", |
701 |
"Koha::Schema::Result::Aqbudgetborrower", |
| 677 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
702 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 678 |
{ cascade_copy => 0, cascade_delete => 0 }, |
703 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 679 |
); |
704 |
); |
| 680 |
|
705 |
|
| 681 |
=head2 borrower_attributes |
706 |
=head2 borrower_attributes_borrowernumbers |
|
|
707 |
|
| 708 |
Type: has_many |
| 709 |
|
| 710 |
Related object: L<Koha::Schema::Result::BorrowerAttribute> |
| 711 |
|
| 712 |
=cut |
| 713 |
|
| 714 |
__PACKAGE__->has_many( |
| 715 |
"borrower_attributes_borrowernumbers", |
| 716 |
"Koha::Schema::Result::BorrowerAttribute", |
| 717 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 718 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 719 |
); |
| 720 |
|
| 721 |
=head2 borrower_attributes_borrowernumbers |
| 682 |
|
722 |
|
| 683 |
Type: has_many |
723 |
Type: has_many |
| 684 |
|
724 |
|
|
Lines 687-699
Related object: L<Koha::Schema::Result::BorrowerAttribute>
Link Here
|
| 687 |
=cut |
727 |
=cut |
| 688 |
|
728 |
|
| 689 |
__PACKAGE__->has_many( |
729 |
__PACKAGE__->has_many( |
| 690 |
"borrower_attributes", |
730 |
"borrower_attributes_borrowernumbers", |
| 691 |
"Koha::Schema::Result::BorrowerAttribute", |
731 |
"Koha::Schema::Result::BorrowerAttribute", |
| 692 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
732 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 693 |
{ cascade_copy => 0, cascade_delete => 0 }, |
733 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 694 |
); |
734 |
); |
| 695 |
|
735 |
|
| 696 |
=head2 borrower_debarments |
736 |
=head2 borrower_debarments_borrowernumbers |
| 697 |
|
737 |
|
| 698 |
Type: has_many |
738 |
Type: has_many |
| 699 |
|
739 |
|
|
Lines 702-714
Related object: L<Koha::Schema::Result::BorrowerDebarment>
Link Here
|
| 702 |
=cut |
742 |
=cut |
| 703 |
|
743 |
|
| 704 |
__PACKAGE__->has_many( |
744 |
__PACKAGE__->has_many( |
| 705 |
"borrower_debarments", |
745 |
"borrower_debarments_borrowernumbers", |
| 706 |
"Koha::Schema::Result::BorrowerDebarment", |
746 |
"Koha::Schema::Result::BorrowerDebarment", |
| 707 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
747 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 708 |
{ cascade_copy => 0, cascade_delete => 0 }, |
748 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 709 |
); |
749 |
); |
| 710 |
|
750 |
|
| 711 |
=head2 borrower_files |
751 |
=head2 borrower_debarments_borrowernumbers |
|
|
752 |
|
| 753 |
Type: has_many |
| 754 |
|
| 755 |
Related object: L<Koha::Schema::Result::BorrowerDebarment> |
| 756 |
|
| 757 |
=cut |
| 758 |
|
| 759 |
__PACKAGE__->has_many( |
| 760 |
"borrower_debarments_borrowernumbers", |
| 761 |
"Koha::Schema::Result::BorrowerDebarment", |
| 762 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 763 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 764 |
); |
| 765 |
|
| 766 |
=head2 borrower_files_borrowernumbers |
| 712 |
|
767 |
|
| 713 |
Type: has_many |
768 |
Type: has_many |
| 714 |
|
769 |
|
|
Lines 717-729
Related object: L<Koha::Schema::Result::BorrowerFile>
Link Here
|
| 717 |
=cut |
772 |
=cut |
| 718 |
|
773 |
|
| 719 |
__PACKAGE__->has_many( |
774 |
__PACKAGE__->has_many( |
| 720 |
"borrower_files", |
775 |
"borrower_files_borrowernumbers", |
| 721 |
"Koha::Schema::Result::BorrowerFile", |
776 |
"Koha::Schema::Result::BorrowerFile", |
| 722 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
777 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 723 |
{ cascade_copy => 0, cascade_delete => 0 }, |
778 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 724 |
); |
779 |
); |
| 725 |
|
780 |
|
| 726 |
=head2 borrower_message_preferences |
781 |
=head2 borrower_files_borrowernumbers |
|
|
782 |
|
| 783 |
Type: has_many |
| 784 |
|
| 785 |
Related object: L<Koha::Schema::Result::BorrowerFile> |
| 786 |
|
| 787 |
=cut |
| 788 |
|
| 789 |
__PACKAGE__->has_many( |
| 790 |
"borrower_files_borrowernumbers", |
| 791 |
"Koha::Schema::Result::BorrowerFile", |
| 792 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 793 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 794 |
); |
| 795 |
|
| 796 |
=head2 borrower_message_preferences_borrowernumbers |
| 727 |
|
797 |
|
| 728 |
Type: has_many |
798 |
Type: has_many |
| 729 |
|
799 |
|
|
Lines 732-738
Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
Link Here
|
| 732 |
=cut |
802 |
=cut |
| 733 |
|
803 |
|
| 734 |
__PACKAGE__->has_many( |
804 |
__PACKAGE__->has_many( |
| 735 |
"borrower_message_preferences", |
805 |
"borrower_message_preferences_borrowernumbers", |
|
|
806 |
"Koha::Schema::Result::BorrowerMessagePreference", |
| 807 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 808 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 809 |
); |
| 810 |
|
| 811 |
=head2 borrower_message_preferences_borrowernumbers |
| 812 |
|
| 813 |
Type: has_many |
| 814 |
|
| 815 |
Related object: L<Koha::Schema::Result::BorrowerMessagePreference> |
| 816 |
|
| 817 |
=cut |
| 818 |
|
| 819 |
__PACKAGE__->has_many( |
| 820 |
"borrower_message_preferences_borrowernumbers", |
| 736 |
"Koha::Schema::Result::BorrowerMessagePreference", |
821 |
"Koha::Schema::Result::BorrowerMessagePreference", |
| 737 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
822 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 738 |
{ cascade_copy => 0, cascade_delete => 0 }, |
823 |
{ cascade_copy => 0, cascade_delete => 0 }, |
|
Lines 783-789
__PACKAGE__->belongs_to(
Link Here
|
| 783 |
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, |
868 |
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, |
| 784 |
); |
869 |
); |
| 785 |
|
870 |
|
| 786 |
=head2 course_instructors |
871 |
=head2 branchcode |
|
|
872 |
|
| 873 |
Type: belongs_to |
| 874 |
|
| 875 |
Related object: L<Koha::Schema::Result::Branch> |
| 876 |
|
| 877 |
=cut |
| 878 |
|
| 879 |
__PACKAGE__->belongs_to( |
| 880 |
"branchcode", |
| 881 |
"Koha::Schema::Result::Branch", |
| 882 |
{ branchcode => "branchcode" }, |
| 883 |
{ on_delete => "CASCADE", on_update => "CASCADE" }, |
| 884 |
); |
| 885 |
|
| 886 |
=head2 club_enrollments |
| 887 |
|
| 888 |
Type: has_many |
| 889 |
|
| 890 |
Related object: L<Koha::Schema::Result::ClubEnrollment> |
| 891 |
|
| 892 |
=cut |
| 893 |
|
| 894 |
__PACKAGE__->has_many( |
| 895 |
"club_enrollments", |
| 896 |
"Koha::Schema::Result::ClubEnrollment", |
| 897 |
{ "foreign.borrower" => "self.borrowernumber" }, |
| 898 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 899 |
); |
| 900 |
|
| 901 |
=head2 course_instructors_borrowernumbers |
| 787 |
|
902 |
|
| 788 |
Type: has_many |
903 |
Type: has_many |
| 789 |
|
904 |
|
|
Lines 792-804
Related object: L<Koha::Schema::Result::CourseInstructor>
Link Here
|
| 792 |
=cut |
907 |
=cut |
| 793 |
|
908 |
|
| 794 |
__PACKAGE__->has_many( |
909 |
__PACKAGE__->has_many( |
| 795 |
"course_instructors", |
910 |
"course_instructors_borrowernumbers", |
| 796 |
"Koha::Schema::Result::CourseInstructor", |
911 |
"Koha::Schema::Result::CourseInstructor", |
| 797 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
912 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 798 |
{ cascade_copy => 0, cascade_delete => 0 }, |
913 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 799 |
); |
914 |
); |
| 800 |
|
915 |
|
| 801 |
=head2 creator_batches |
916 |
=head2 course_instructors_borrowernumbers |
|
|
917 |
|
| 918 |
Type: has_many |
| 919 |
|
| 920 |
Related object: L<Koha::Schema::Result::CourseInstructor> |
| 921 |
|
| 922 |
=cut |
| 923 |
|
| 924 |
__PACKAGE__->has_many( |
| 925 |
"course_instructors_borrowernumbers", |
| 926 |
"Koha::Schema::Result::CourseInstructor", |
| 927 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 928 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 929 |
); |
| 930 |
|
| 931 |
=head2 creator_batches_borrower_numbers |
| 802 |
|
932 |
|
| 803 |
Type: has_many |
933 |
Type: has_many |
| 804 |
|
934 |
|
|
Lines 807-819
Related object: L<Koha::Schema::Result::CreatorBatch>
Link Here
|
| 807 |
=cut |
937 |
=cut |
| 808 |
|
938 |
|
| 809 |
__PACKAGE__->has_many( |
939 |
__PACKAGE__->has_many( |
| 810 |
"creator_batches", |
940 |
"creator_batches_borrower_numbers", |
| 811 |
"Koha::Schema::Result::CreatorBatch", |
941 |
"Koha::Schema::Result::CreatorBatch", |
| 812 |
{ "foreign.borrower_number" => "self.borrowernumber" }, |
942 |
{ "foreign.borrower_number" => "self.borrowernumber" }, |
| 813 |
{ cascade_copy => 0, cascade_delete => 0 }, |
943 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 814 |
); |
944 |
); |
| 815 |
|
945 |
|
| 816 |
=head2 hold_fill_targets |
946 |
=head2 creator_batches_borrower_numbers |
|
|
947 |
|
| 948 |
Type: has_many |
| 949 |
|
| 950 |
Related object: L<Koha::Schema::Result::CreatorBatch> |
| 951 |
|
| 952 |
=cut |
| 953 |
|
| 954 |
__PACKAGE__->has_many( |
| 955 |
"creator_batches_borrower_numbers", |
| 956 |
"Koha::Schema::Result::CreatorBatch", |
| 957 |
{ "foreign.borrower_number" => "self.borrowernumber" }, |
| 958 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 959 |
); |
| 960 |
|
| 961 |
=head2 hold_fill_targets_borrowernumbers |
| 817 |
|
962 |
|
| 818 |
Type: has_many |
963 |
Type: has_many |
| 819 |
|
964 |
|
|
Lines 822-834
Related object: L<Koha::Schema::Result::HoldFillTarget>
Link Here
|
| 822 |
=cut |
967 |
=cut |
| 823 |
|
968 |
|
| 824 |
__PACKAGE__->has_many( |
969 |
__PACKAGE__->has_many( |
| 825 |
"hold_fill_targets", |
970 |
"hold_fill_targets_borrowernumbers", |
| 826 |
"Koha::Schema::Result::HoldFillTarget", |
971 |
"Koha::Schema::Result::HoldFillTarget", |
| 827 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
972 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 828 |
{ cascade_copy => 0, cascade_delete => 0 }, |
973 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 829 |
); |
974 |
); |
| 830 |
|
975 |
|
| 831 |
=head2 issues |
976 |
=head2 hold_fill_targets_borrowernumbers |
|
|
977 |
|
| 978 |
Type: has_many |
| 979 |
|
| 980 |
Related object: L<Koha::Schema::Result::HoldFillTarget> |
| 981 |
|
| 982 |
=cut |
| 983 |
|
| 984 |
__PACKAGE__->has_many( |
| 985 |
"hold_fill_targets_borrowernumbers", |
| 986 |
"Koha::Schema::Result::HoldFillTarget", |
| 987 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 988 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 989 |
); |
| 990 |
|
| 991 |
=head2 issues_borrowernumbers |
| 992 |
|
| 993 |
Type: has_many |
| 994 |
|
| 995 |
Related object: L<Koha::Schema::Result::Issue> |
| 996 |
|
| 997 |
=cut |
| 998 |
|
| 999 |
__PACKAGE__->has_many( |
| 1000 |
"issues_borrowernumbers", |
| 1001 |
"Koha::Schema::Result::Issue", |
| 1002 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1003 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1004 |
); |
| 1005 |
|
| 1006 |
=head2 issues_borrowernumbers |
| 832 |
|
1007 |
|
| 833 |
Type: has_many |
1008 |
Type: has_many |
| 834 |
|
1009 |
|
|
Lines 837-849
Related object: L<Koha::Schema::Result::Issue>
Link Here
|
| 837 |
=cut |
1012 |
=cut |
| 838 |
|
1013 |
|
| 839 |
__PACKAGE__->has_many( |
1014 |
__PACKAGE__->has_many( |
| 840 |
"issues", |
1015 |
"issues_borrowernumbers", |
| 841 |
"Koha::Schema::Result::Issue", |
1016 |
"Koha::Schema::Result::Issue", |
| 842 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
1017 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 843 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1018 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 844 |
); |
1019 |
); |
| 845 |
|
1020 |
|
| 846 |
=head2 message_queues |
1021 |
=head2 message_queue_borrowernumbers |
| 847 |
|
1022 |
|
| 848 |
Type: has_many |
1023 |
Type: has_many |
| 849 |
|
1024 |
|
|
Lines 852-864
Related object: L<Koha::Schema::Result::MessageQueue>
Link Here
|
| 852 |
=cut |
1027 |
=cut |
| 853 |
|
1028 |
|
| 854 |
__PACKAGE__->has_many( |
1029 |
__PACKAGE__->has_many( |
| 855 |
"message_queues", |
1030 |
"message_queue_borrowernumbers", |
| 856 |
"Koha::Schema::Result::MessageQueue", |
1031 |
"Koha::Schema::Result::MessageQueue", |
| 857 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
1032 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 858 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1033 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 859 |
); |
1034 |
); |
| 860 |
|
1035 |
|
| 861 |
=head2 old_issues |
1036 |
=head2 message_queue_borrowernumbers |
|
|
1037 |
|
| 1038 |
Type: has_many |
| 1039 |
|
| 1040 |
Related object: L<Koha::Schema::Result::MessageQueue> |
| 1041 |
|
| 1042 |
=cut |
| 1043 |
|
| 1044 |
__PACKAGE__->has_many( |
| 1045 |
"message_queue_borrowernumbers", |
| 1046 |
"Koha::Schema::Result::MessageQueue", |
| 1047 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1048 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1049 |
); |
| 1050 |
|
| 1051 |
=head2 old_issues_borrowernumbers |
| 1052 |
|
| 1053 |
Type: has_many |
| 1054 |
|
| 1055 |
Related object: L<Koha::Schema::Result::OldIssue> |
| 1056 |
|
| 1057 |
=cut |
| 1058 |
|
| 1059 |
__PACKAGE__->has_many( |
| 1060 |
"old_issues_borrowernumbers", |
| 1061 |
"Koha::Schema::Result::OldIssue", |
| 1062 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1063 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1064 |
); |
| 1065 |
|
| 1066 |
=head2 old_issues_borrowernumbers |
| 862 |
|
1067 |
|
| 863 |
Type: has_many |
1068 |
Type: has_many |
| 864 |
|
1069 |
|
|
Lines 867-879
Related object: L<Koha::Schema::Result::OldIssue>
Link Here
|
| 867 |
=cut |
1072 |
=cut |
| 868 |
|
1073 |
|
| 869 |
__PACKAGE__->has_many( |
1074 |
__PACKAGE__->has_many( |
| 870 |
"old_issues", |
1075 |
"old_issues_borrowernumbers", |
| 871 |
"Koha::Schema::Result::OldIssue", |
1076 |
"Koha::Schema::Result::OldIssue", |
| 872 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
1077 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 873 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1078 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 874 |
); |
1079 |
); |
| 875 |
|
1080 |
|
| 876 |
=head2 old_reserves |
1081 |
=head2 old_reserves_borrowernumbers |
|
|
1082 |
|
| 1083 |
Type: has_many |
| 1084 |
|
| 1085 |
Related object: L<Koha::Schema::Result::OldReserve> |
| 1086 |
|
| 1087 |
=cut |
| 1088 |
|
| 1089 |
__PACKAGE__->has_many( |
| 1090 |
"old_reserves_borrowernumbers", |
| 1091 |
"Koha::Schema::Result::OldReserve", |
| 1092 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1093 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1094 |
); |
| 1095 |
|
| 1096 |
=head2 old_reserves_borrowernumbers |
| 877 |
|
1097 |
|
| 878 |
Type: has_many |
1098 |
Type: has_many |
| 879 |
|
1099 |
|
|
Lines 882-894
Related object: L<Koha::Schema::Result::OldReserve>
Link Here
|
| 882 |
=cut |
1102 |
=cut |
| 883 |
|
1103 |
|
| 884 |
__PACKAGE__->has_many( |
1104 |
__PACKAGE__->has_many( |
| 885 |
"old_reserves", |
1105 |
"old_reserves_borrowernumbers", |
| 886 |
"Koha::Schema::Result::OldReserve", |
1106 |
"Koha::Schema::Result::OldReserve", |
| 887 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
1107 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 888 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1108 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 889 |
); |
1109 |
); |
| 890 |
|
1110 |
|
| 891 |
=head2 patron_list_patrons |
1111 |
=head2 patron_list_patrons_borrowernumbers |
| 892 |
|
1112 |
|
| 893 |
Type: has_many |
1113 |
Type: has_many |
| 894 |
|
1114 |
|
|
Lines 897-909
Related object: L<Koha::Schema::Result::PatronListPatron>
Link Here
|
| 897 |
=cut |
1117 |
=cut |
| 898 |
|
1118 |
|
| 899 |
__PACKAGE__->has_many( |
1119 |
__PACKAGE__->has_many( |
| 900 |
"patron_list_patrons", |
1120 |
"patron_list_patrons_borrowernumbers", |
| 901 |
"Koha::Schema::Result::PatronListPatron", |
1121 |
"Koha::Schema::Result::PatronListPatron", |
| 902 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
1122 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 903 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1123 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 904 |
); |
1124 |
); |
| 905 |
|
1125 |
|
| 906 |
=head2 patron_lists |
1126 |
=head2 patron_list_patrons_borrowernumbers |
|
|
1127 |
|
| 1128 |
Type: has_many |
| 1129 |
|
| 1130 |
Related object: L<Koha::Schema::Result::PatronListPatron> |
| 1131 |
|
| 1132 |
=cut |
| 1133 |
|
| 1134 |
__PACKAGE__->has_many( |
| 1135 |
"patron_list_patrons_borrowernumbers", |
| 1136 |
"Koha::Schema::Result::PatronListPatron", |
| 1137 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1138 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1139 |
); |
| 1140 |
|
| 1141 |
=head2 patron_lists_owners |
| 907 |
|
1142 |
|
| 908 |
Type: has_many |
1143 |
Type: has_many |
| 909 |
|
1144 |
|
|
Lines 912-924
Related object: L<Koha::Schema::Result::PatronList>
Link Here
|
| 912 |
=cut |
1147 |
=cut |
| 913 |
|
1148 |
|
| 914 |
__PACKAGE__->has_many( |
1149 |
__PACKAGE__->has_many( |
| 915 |
"patron_lists", |
1150 |
"patron_lists_owners", |
| 916 |
"Koha::Schema::Result::PatronList", |
1151 |
"Koha::Schema::Result::PatronList", |
| 917 |
{ "foreign.owner" => "self.borrowernumber" }, |
1152 |
{ "foreign.owner" => "self.borrowernumber" }, |
| 918 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1153 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 919 |
); |
1154 |
); |
| 920 |
|
1155 |
|
| 921 |
=head2 patroncards |
1156 |
=head2 patron_lists_owners |
|
|
1157 |
|
| 1158 |
Type: has_many |
| 1159 |
|
| 1160 |
Related object: L<Koha::Schema::Result::PatronList> |
| 1161 |
|
| 1162 |
=cut |
| 1163 |
|
| 1164 |
__PACKAGE__->has_many( |
| 1165 |
"patron_lists_owners", |
| 1166 |
"Koha::Schema::Result::PatronList", |
| 1167 |
{ "foreign.owner" => "self.borrowernumber" }, |
| 1168 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1169 |
); |
| 1170 |
|
| 1171 |
=head2 patroncards_borrowernumbers |
| 1172 |
|
| 1173 |
Type: has_many |
| 1174 |
|
| 1175 |
Related object: L<Koha::Schema::Result::Patroncard> |
| 1176 |
|
| 1177 |
=cut |
| 1178 |
|
| 1179 |
__PACKAGE__->has_many( |
| 1180 |
"patroncards_borrowernumbers", |
| 1181 |
"Koha::Schema::Result::Patroncard", |
| 1182 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1183 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1184 |
); |
| 1185 |
|
| 1186 |
=head2 patroncards_borrowernumbers |
| 922 |
|
1187 |
|
| 923 |
Type: has_many |
1188 |
Type: has_many |
| 924 |
|
1189 |
|
|
Lines 927-939
Related object: L<Koha::Schema::Result::Patroncard>
Link Here
|
| 927 |
=cut |
1192 |
=cut |
| 928 |
|
1193 |
|
| 929 |
__PACKAGE__->has_many( |
1194 |
__PACKAGE__->has_many( |
| 930 |
"patroncards", |
1195 |
"patroncards_borrowernumbers", |
| 931 |
"Koha::Schema::Result::Patroncard", |
1196 |
"Koha::Schema::Result::Patroncard", |
| 932 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
1197 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 933 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1198 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 934 |
); |
1199 |
); |
| 935 |
|
1200 |
|
| 936 |
=head2 patronimage |
1201 |
=head2 patronimage_borrowernumber |
|
|
1202 |
|
| 1203 |
Type: might_have |
| 1204 |
|
| 1205 |
Related object: L<Koha::Schema::Result::Patronimage> |
| 1206 |
|
| 1207 |
=cut |
| 1208 |
|
| 1209 |
__PACKAGE__->might_have( |
| 1210 |
"patronimage_borrowernumber", |
| 1211 |
"Koha::Schema::Result::Patronimage", |
| 1212 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1213 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1214 |
); |
| 1215 |
|
| 1216 |
=head2 patronimage_borrowernumber |
| 937 |
|
1217 |
|
| 938 |
Type: might_have |
1218 |
Type: might_have |
| 939 |
|
1219 |
|
|
Lines 942-954
Related object: L<Koha::Schema::Result::Patronimage>
Link Here
|
| 942 |
=cut |
1222 |
=cut |
| 943 |
|
1223 |
|
| 944 |
__PACKAGE__->might_have( |
1224 |
__PACKAGE__->might_have( |
| 945 |
"patronimage", |
1225 |
"patronimage_borrowernumber", |
| 946 |
"Koha::Schema::Result::Patronimage", |
1226 |
"Koha::Schema::Result::Patronimage", |
| 947 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
1227 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 948 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1228 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 949 |
); |
1229 |
); |
| 950 |
|
1230 |
|
| 951 |
=head2 ratings |
1231 |
=head2 ratings_borrowernumbers |
| 952 |
|
1232 |
|
| 953 |
Type: has_many |
1233 |
Type: has_many |
| 954 |
|
1234 |
|
|
Lines 957-969
Related object: L<Koha::Schema::Result::Rating>
Link Here
|
| 957 |
=cut |
1237 |
=cut |
| 958 |
|
1238 |
|
| 959 |
__PACKAGE__->has_many( |
1239 |
__PACKAGE__->has_many( |
| 960 |
"ratings", |
1240 |
"ratings_borrowernumbers", |
| 961 |
"Koha::Schema::Result::Rating", |
1241 |
"Koha::Schema::Result::Rating", |
| 962 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
1242 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 963 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1243 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 964 |
); |
1244 |
); |
| 965 |
|
1245 |
|
| 966 |
=head2 reserves |
1246 |
=head2 ratings_borrowernumbers |
|
|
1247 |
|
| 1248 |
Type: has_many |
| 1249 |
|
| 1250 |
Related object: L<Koha::Schema::Result::Rating> |
| 1251 |
|
| 1252 |
=cut |
| 1253 |
|
| 1254 |
__PACKAGE__->has_many( |
| 1255 |
"ratings_borrowernumbers", |
| 1256 |
"Koha::Schema::Result::Rating", |
| 1257 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1258 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1259 |
); |
| 1260 |
|
| 1261 |
=head2 reserves_borrowernumbers |
| 967 |
|
1262 |
|
| 968 |
Type: has_many |
1263 |
Type: has_many |
| 969 |
|
1264 |
|
|
Lines 972-984
Related object: L<Koha::Schema::Result::Reserve>
Link Here
|
| 972 |
=cut |
1267 |
=cut |
| 973 |
|
1268 |
|
| 974 |
__PACKAGE__->has_many( |
1269 |
__PACKAGE__->has_many( |
| 975 |
"reserves", |
1270 |
"reserves_borrowernumbers", |
| 976 |
"Koha::Schema::Result::Reserve", |
1271 |
"Koha::Schema::Result::Reserve", |
| 977 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
1272 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 978 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1273 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 979 |
); |
1274 |
); |
| 980 |
|
1275 |
|
| 981 |
=head2 reviews |
1276 |
=head2 reserves_borrowernumbers |
|
|
1277 |
|
| 1278 |
Type: has_many |
| 1279 |
|
| 1280 |
Related object: L<Koha::Schema::Result::Reserve> |
| 1281 |
|
| 1282 |
=cut |
| 1283 |
|
| 1284 |
__PACKAGE__->has_many( |
| 1285 |
"reserves_borrowernumbers", |
| 1286 |
"Koha::Schema::Result::Reserve", |
| 1287 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1288 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1289 |
); |
| 1290 |
|
| 1291 |
=head2 reviews_borrowernumbers |
| 982 |
|
1292 |
|
| 983 |
Type: has_many |
1293 |
Type: has_many |
| 984 |
|
1294 |
|
|
Lines 987-999
Related object: L<Koha::Schema::Result::Review>
Link Here
|
| 987 |
=cut |
1297 |
=cut |
| 988 |
|
1298 |
|
| 989 |
__PACKAGE__->has_many( |
1299 |
__PACKAGE__->has_many( |
| 990 |
"reviews", |
1300 |
"reviews_borrowernumbers", |
| 991 |
"Koha::Schema::Result::Review", |
1301 |
"Koha::Schema::Result::Review", |
| 992 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
1302 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 993 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1303 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 994 |
); |
1304 |
); |
| 995 |
|
1305 |
|
| 996 |
=head2 subscriptionroutinglists |
1306 |
=head2 reviews_borrowernumbers |
|
|
1307 |
|
| 1308 |
Type: has_many |
| 1309 |
|
| 1310 |
Related object: L<Koha::Schema::Result::Review> |
| 1311 |
|
| 1312 |
=cut |
| 1313 |
|
| 1314 |
__PACKAGE__->has_many( |
| 1315 |
"reviews_borrowernumbers", |
| 1316 |
"Koha::Schema::Result::Review", |
| 1317 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1318 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1319 |
); |
| 1320 |
|
| 1321 |
=head2 subscriptionroutinglist_borrowernumbers |
| 1322 |
|
| 1323 |
Type: has_many |
| 1324 |
|
| 1325 |
Related object: L<Koha::Schema::Result::Subscriptionroutinglist> |
| 1326 |
|
| 1327 |
=cut |
| 1328 |
|
| 1329 |
__PACKAGE__->has_many( |
| 1330 |
"subscriptionroutinglist_borrowernumbers", |
| 1331 |
"Koha::Schema::Result::Subscriptionroutinglist", |
| 1332 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1333 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1334 |
); |
| 1335 |
|
| 1336 |
=head2 subscriptionroutinglist_borrowernumbers |
| 997 |
|
1337 |
|
| 998 |
Type: has_many |
1338 |
Type: has_many |
| 999 |
|
1339 |
|
|
Lines 1002-1014
Related object: L<Koha::Schema::Result::Subscriptionroutinglist>
Link Here
|
| 1002 |
=cut |
1342 |
=cut |
| 1003 |
|
1343 |
|
| 1004 |
__PACKAGE__->has_many( |
1344 |
__PACKAGE__->has_many( |
| 1005 |
"subscriptionroutinglists", |
1345 |
"subscriptionroutinglist_borrowernumbers", |
| 1006 |
"Koha::Schema::Result::Subscriptionroutinglist", |
1346 |
"Koha::Schema::Result::Subscriptionroutinglist", |
| 1007 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
1347 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1008 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1348 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1009 |
); |
1349 |
); |
| 1010 |
|
1350 |
|
| 1011 |
=head2 tags_all |
1351 |
=head2 tags_all_borrowernumbers |
| 1012 |
|
1352 |
|
| 1013 |
Type: has_many |
1353 |
Type: has_many |
| 1014 |
|
1354 |
|
|
Lines 1017-1029
Related object: L<Koha::Schema::Result::TagAll>
Link Here
|
| 1017 |
=cut |
1357 |
=cut |
| 1018 |
|
1358 |
|
| 1019 |
__PACKAGE__->has_many( |
1359 |
__PACKAGE__->has_many( |
| 1020 |
"tags_all", |
1360 |
"tags_all_borrowernumbers", |
| 1021 |
"Koha::Schema::Result::TagAll", |
1361 |
"Koha::Schema::Result::TagAll", |
| 1022 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
1362 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1023 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1363 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1024 |
); |
1364 |
); |
| 1025 |
|
1365 |
|
| 1026 |
=head2 tags_approvals |
1366 |
=head2 tags_all_borrowernumbers |
|
|
1367 |
|
| 1368 |
Type: has_many |
| 1369 |
|
| 1370 |
Related object: L<Koha::Schema::Result::TagAll> |
| 1371 |
|
| 1372 |
=cut |
| 1373 |
|
| 1374 |
__PACKAGE__->has_many( |
| 1375 |
"tags_all_borrowernumbers", |
| 1376 |
"Koha::Schema::Result::TagAll", |
| 1377 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1378 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1379 |
); |
| 1380 |
|
| 1381 |
=head2 tags_approvals_approved_by |
| 1382 |
|
| 1383 |
Type: has_many |
| 1384 |
|
| 1385 |
Related object: L<Koha::Schema::Result::TagsApproval> |
| 1386 |
|
| 1387 |
=cut |
| 1388 |
|
| 1389 |
__PACKAGE__->has_many( |
| 1390 |
"tags_approvals_approved_by", |
| 1391 |
"Koha::Schema::Result::TagsApproval", |
| 1392 |
{ "foreign.approved_by" => "self.borrowernumber" }, |
| 1393 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1394 |
); |
| 1395 |
|
| 1396 |
=head2 tags_approvals_approved_by |
| 1027 |
|
1397 |
|
| 1028 |
Type: has_many |
1398 |
Type: has_many |
| 1029 |
|
1399 |
|
|
Lines 1032-1044
Related object: L<Koha::Schema::Result::TagsApproval>
Link Here
|
| 1032 |
=cut |
1402 |
=cut |
| 1033 |
|
1403 |
|
| 1034 |
__PACKAGE__->has_many( |
1404 |
__PACKAGE__->has_many( |
| 1035 |
"tags_approvals", |
1405 |
"tags_approvals_approved_by", |
| 1036 |
"Koha::Schema::Result::TagsApproval", |
1406 |
"Koha::Schema::Result::TagsApproval", |
| 1037 |
{ "foreign.approved_by" => "self.borrowernumber" }, |
1407 |
{ "foreign.approved_by" => "self.borrowernumber" }, |
| 1038 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1408 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1039 |
); |
1409 |
); |
| 1040 |
|
1410 |
|
| 1041 |
=head2 user_permissions |
1411 |
=head2 user_permissions_borrowernumbers |
| 1042 |
|
1412 |
|
| 1043 |
Type: has_many |
1413 |
Type: has_many |
| 1044 |
|
1414 |
|
|
Lines 1047-1059
Related object: L<Koha::Schema::Result::UserPermission>
Link Here
|
| 1047 |
=cut |
1417 |
=cut |
| 1048 |
|
1418 |
|
| 1049 |
__PACKAGE__->has_many( |
1419 |
__PACKAGE__->has_many( |
| 1050 |
"user_permissions", |
1420 |
"user_permissions_borrowernumbers", |
| 1051 |
"Koha::Schema::Result::UserPermission", |
1421 |
"Koha::Schema::Result::UserPermission", |
| 1052 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
1422 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1053 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1423 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1054 |
); |
1424 |
); |
| 1055 |
|
1425 |
|
| 1056 |
=head2 virtualshelfcontents |
1426 |
=head2 user_permissions_borrowernumbers |
|
|
1427 |
|
| 1428 |
Type: has_many |
| 1429 |
|
| 1430 |
Related object: L<Koha::Schema::Result::UserPermission> |
| 1431 |
|
| 1432 |
=cut |
| 1433 |
|
| 1434 |
__PACKAGE__->has_many( |
| 1435 |
"user_permissions_borrowernumbers", |
| 1436 |
"Koha::Schema::Result::UserPermission", |
| 1437 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1438 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1439 |
); |
| 1440 |
|
| 1441 |
=head2 virtualshelfcontents_borrowernumbers |
| 1057 |
|
1442 |
|
| 1058 |
Type: has_many |
1443 |
Type: has_many |
| 1059 |
|
1444 |
|
|
Lines 1062-1137
Related object: L<Koha::Schema::Result::Virtualshelfcontent>
Link Here
|
| 1062 |
=cut |
1447 |
=cut |
| 1063 |
|
1448 |
|
| 1064 |
__PACKAGE__->has_many( |
1449 |
__PACKAGE__->has_many( |
| 1065 |
"virtualshelfcontents", |
1450 |
"virtualshelfcontents_borrowernumbers", |
| 1066 |
"Koha::Schema::Result::Virtualshelfcontent", |
1451 |
"Koha::Schema::Result::Virtualshelfcontent", |
| 1067 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
1452 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1068 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1453 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1069 |
); |
1454 |
); |
| 1070 |
|
1455 |
|
| 1071 |
=head2 virtualshelfshares |
1456 |
=head2 virtualshelfcontents_borrowernumbers |
| 1072 |
|
1457 |
|
| 1073 |
Type: has_many |
1458 |
Type: has_many |
| 1074 |
|
1459 |
|
| 1075 |
Related object: L<Koha::Schema::Result::Virtualshelfshare> |
1460 |
Related object: L<Koha::Schema::Result::Virtualshelfcontent> |
| 1076 |
|
1461 |
|
| 1077 |
=cut |
1462 |
=cut |
| 1078 |
|
1463 |
|
| 1079 |
__PACKAGE__->has_many( |
1464 |
__PACKAGE__->has_many( |
| 1080 |
"virtualshelfshares", |
1465 |
"virtualshelfcontents_borrowernumbers", |
| 1081 |
"Koha::Schema::Result::Virtualshelfshare", |
1466 |
"Koha::Schema::Result::Virtualshelfcontent", |
| 1082 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
1467 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1083 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1468 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1084 |
); |
1469 |
); |
| 1085 |
|
1470 |
|
| 1086 |
=head2 virtualshelves |
1471 |
=head2 virtualshelfshares_borrowernumbers |
| 1087 |
|
1472 |
|
| 1088 |
Type: has_many |
1473 |
Type: has_many |
| 1089 |
|
1474 |
|
| 1090 |
Related object: L<Koha::Schema::Result::Virtualshelve> |
1475 |
Related object: L<Koha::Schema::Result::Virtualshelfshare> |
| 1091 |
|
1476 |
|
| 1092 |
=cut |
1477 |
=cut |
| 1093 |
|
1478 |
|
| 1094 |
__PACKAGE__->has_many( |
1479 |
__PACKAGE__->has_many( |
| 1095 |
"virtualshelves", |
1480 |
"virtualshelfshares_borrowernumbers", |
| 1096 |
"Koha::Schema::Result::Virtualshelve", |
1481 |
"Koha::Schema::Result::Virtualshelfshare", |
| 1097 |
{ "foreign.owner" => "self.borrowernumber" }, |
1482 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1098 |
{ cascade_copy => 0, cascade_delete => 0 }, |
1483 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1099 |
); |
1484 |
); |
| 1100 |
|
1485 |
|
| 1101 |
=head2 basketnoes |
1486 |
=head2 virtualshelfshares_borrowernumbers |
| 1102 |
|
1487 |
|
| 1103 |
Type: many_to_many |
1488 |
Type: has_many |
| 1104 |
|
1489 |
|
| 1105 |
Composing rels: L</aqbasketusers> -> basketno |
1490 |
Related object: L<Koha::Schema::Result::Virtualshelfshare> |
| 1106 |
|
1491 |
|
| 1107 |
=cut |
1492 |
=cut |
| 1108 |
|
1493 |
|
| 1109 |
__PACKAGE__->many_to_many("basketnoes", "aqbasketusers", "basketno"); |
1494 |
__PACKAGE__->has_many( |
|
|
1495 |
"virtualshelfshares_borrowernumbers", |
| 1496 |
"Koha::Schema::Result::Virtualshelfshare", |
| 1497 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
| 1498 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1499 |
); |
| 1110 |
|
1500 |
|
| 1111 |
=head2 budgets |
1501 |
=head2 virtualshelves_owners |
| 1112 |
|
1502 |
|
| 1113 |
Type: many_to_many |
1503 |
Type: has_many |
| 1114 |
|
1504 |
|
| 1115 |
Composing rels: L</aqbudgetborrowers> -> budget |
1505 |
Related object: L<Koha::Schema::Result::Virtualshelve> |
| 1116 |
|
1506 |
|
| 1117 |
=cut |
1507 |
=cut |
| 1118 |
|
1508 |
|
| 1119 |
__PACKAGE__->many_to_many("budgets", "aqbudgetborrowers", "budget"); |
1509 |
__PACKAGE__->has_many( |
|
|
1510 |
"virtualshelves_owners", |
| 1511 |
"Koha::Schema::Result::Virtualshelve", |
| 1512 |
{ "foreign.owner" => "self.borrowernumber" }, |
| 1513 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1514 |
); |
| 1120 |
|
1515 |
|
| 1121 |
=head2 courses |
1516 |
=head2 virtualshelves_owners |
| 1122 |
|
1517 |
|
| 1123 |
Type: many_to_many |
1518 |
Type: has_many |
| 1124 |
|
1519 |
|
| 1125 |
Composing rels: L</course_instructors> -> course |
1520 |
Related object: L<Koha::Schema::Result::Virtualshelve> |
| 1126 |
|
1521 |
|
| 1127 |
=cut |
1522 |
=cut |
| 1128 |
|
1523 |
|
| 1129 |
__PACKAGE__->many_to_many("courses", "course_instructors", "course"); |
1524 |
__PACKAGE__->has_many( |
|
|
1525 |
"virtualshelves_owners", |
| 1526 |
"Koha::Schema::Result::Virtualshelve", |
| 1527 |
{ "foreign.owner" => "self.borrowernumber" }, |
| 1528 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 1529 |
); |
| 1130 |
|
1530 |
|
| 1131 |
|
1531 |
|
| 1132 |
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-12-31 14:08:18 |
1532 |
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-12-31 14:08:18 |
| 1133 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mOTD/GsDpo3RPjUjTHrLRQ |
1533 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mOTD/GsDpo3RPjUjTHrLRQ |
| 1134 |
|
1534 |
|
|
|
1535 |
sub FirstValidEmailAddress { |
| 1536 |
my ( $self ) = @_; |
| 1537 |
|
| 1538 |
return $self->email() || $self->emailpro() || $self->b_email() || q{}; |
| 1539 |
} |
| 1540 |
|
| 1541 |
sub ClubsEnrolledCount { |
| 1542 |
my ( $self ) = @_; |
| 1543 |
|
| 1544 |
return $self->club_enrollments({ date_canceled => undef })->count(); |
| 1545 |
} |
| 1546 |
|
| 1547 |
sub ClubsEnrollableCount { |
| 1548 |
my ( $self, $is_enrollable_from_opac ) = @_; |
| 1549 |
|
| 1550 |
my $params; |
| 1551 |
$params->{is_enrollable_from_opac} = $is_enrollable_from_opac |
| 1552 |
if $is_enrollable_from_opac; |
| 1553 |
$params->{is_email_required} = 0 unless $self->FirstValidEmailAddress(); |
| 1554 |
|
| 1555 |
return $self->result_source->schema->resultset('Club') |
| 1556 |
->search( $params, { prefetch => 'club_template' } )->count(); |
| 1557 |
} |
| 1135 |
|
1558 |
|
| 1136 |
# You can replace this text with custom content, and it will be preserved on regeneration |
|
|
| 1137 |
1; |
1559 |
1; |