projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
POD zu update_attributes ergänzt
[kivitendo-erp.git]
/
SL
/
DB
/
Object.pm
diff --git
a/SL/DB/Object.pm
b/SL/DB/Object.pm
index
81ef978
..
252e8ad
100755
(executable)
--- a/
SL/DB/Object.pm
+++ b/
SL/DB/Object.pm
@@
-265,7
+265,16
@@
C<NULL> in the database).
Assigns the attributes from C<%attributes> by calling the
C<assign_attributes> function and saves the object afterwards. Returns
Assigns the attributes from C<%attributes> by calling the
C<assign_attributes> function and saves the object afterwards. Returns
-the object itself.
+the object itself or error if referential integrity is broken.
+Correct usage:
+
+ update_attributes(warehouse_id => wh_id, bin_id => bin_id);
+
+Wrong usage:
+
+ update_attributes(warehouse_id => wh_id);
+ update_attributes(bin_id => bin_id);
+
=item _get_manager_class
=item _get_manager_class