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