Bug 23185: (QA follow-up) Add POD for Koha::Objects->update
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
633befb5f0
commit
fe2ac51b27
|
|
@ -196,6 +196,17 @@ sub delete {
|
||||||
|
|
||||||
=head3 update
|
=head3 update
|
||||||
|
|
||||||
|
$object->update( $fields, [ { no_triggers => 0/1 } ] );
|
||||||
|
|
||||||
|
This method overloads the DBIC inherited one so if code-level triggers exist
|
||||||
|
(through the use of an overloaded I<update> or I<store> method in the Koha::Object
|
||||||
|
based class) those are called in a loop on the resultset.
|
||||||
|
|
||||||
|
If B<no_triggers> is passed and I<true>, then the DBIC update method is called
|
||||||
|
directly. This feature is important for performance, in cases no code-level
|
||||||
|
triggers are defined. The developer will explicitly ask for this and QA should
|
||||||
|
catch wrong uses as well.
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub update {
|
sub update {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue