Lines 52-57
__PACKAGE__->table("collections");
Link Here
|
52 |
is_nullable: 1 |
52 |
is_nullable: 1 |
53 |
size: 10 |
53 |
size: 10 |
54 |
|
54 |
|
|
|
55 |
=head2 createdBy |
56 |
|
57 |
accessor: 'created_by' |
58 |
data_type: 'integer' |
59 |
is_foreign_key: 1 |
60 |
is_nullable: 1 |
61 |
|
62 |
=head2 createdOn |
63 |
|
64 |
accessor: 'created_on' |
65 |
data_type: 'datetime' |
66 |
datetime_undef_if_invalid: 1 |
67 |
is_nullable: 1 |
68 |
|
69 |
=head2 lastTransferredOn |
70 |
|
71 |
accessor: 'last_transferred_on' |
72 |
data_type: 'datetime' |
73 |
datetime_undef_if_invalid: 1 |
74 |
is_nullable: 1 |
75 |
|
55 |
=cut |
76 |
=cut |
56 |
|
77 |
|
57 |
__PACKAGE__->add_columns( |
78 |
__PACKAGE__->add_columns( |
Lines 80-85
__PACKAGE__->add_columns(
Link Here
|
80 |
is_nullable => 1, |
101 |
is_nullable => 1, |
81 |
size => 10, |
102 |
size => 10, |
82 |
}, |
103 |
}, |
|
|
104 |
"createdBy", |
105 |
{ |
106 |
accessor => "created_by", |
107 |
data_type => "integer", |
108 |
is_foreign_key => 1, |
109 |
is_nullable => 1, |
110 |
}, |
111 |
"createdOn", |
112 |
{ |
113 |
accessor => "created_on", |
114 |
data_type => "datetime", |
115 |
datetime_undef_if_invalid => 1, |
116 |
is_nullable => 1, |
117 |
}, |
118 |
"lastTransferredOn", |
119 |
{ |
120 |
accessor => "last_transferred_on", |
121 |
data_type => "datetime", |
122 |
datetime_undef_if_invalid => 1, |
123 |
is_nullable => 1, |
124 |
}, |
83 |
); |
125 |
); |
84 |
|
126 |
|
85 |
=head1 PRIMARY KEY |
127 |
=head1 PRIMARY KEY |
Lines 131-139
__PACKAGE__->has_many(
Link Here
|
131 |
{ cascade_copy => 0, cascade_delete => 0 }, |
173 |
{ cascade_copy => 0, cascade_delete => 0 }, |
132 |
); |
174 |
); |
133 |
|
175 |
|
|
|
176 |
=head2 created_by |
177 |
|
178 |
Type: belongs_to |
179 |
|
180 |
Related object: L<Koha::Schema::Result::Borrower> |
181 |
|
182 |
=cut |
183 |
|
184 |
__PACKAGE__->belongs_to( |
185 |
"created_by", |
186 |
"Koha::Schema::Result::Borrower", |
187 |
{ borrowernumber => "createdBy" }, |
188 |
{ |
189 |
is_deferrable => 1, |
190 |
join_type => "LEFT", |
191 |
on_delete => "SET NULL", |
192 |
on_update => "CASCADE", |
193 |
}, |
194 |
); |
195 |
|
134 |
|
196 |
|
135 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-03-05 11:15:27 |
197 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-11-12 10:32:36 |
136 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rpcRZuYeV6k8GvddpikSSQ |
198 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WvtZW+gjkxy8J1EL2oF0oA |
137 |
|
199 |
|
138 |
|
200 |
|
139 |
# You can replace this text with custom content, and it will be preserved on regeneration |
201 |
# You can replace this text with custom content, and it will be preserved on regeneration |
140 |
- |
|
|