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