From 2271551b46c84fa256c7a2e0a46c04cddf31e89e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Fri, 23 Oct 2015 14:35:55 +0200 Subject: [PATCH] =?utf8?q?POD=20zu=20update=5Fattributes=20erg=C3=A4nzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit mit der Bitte an Sven einmal gegenzulesen. --- SL/DB/Object.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/SL/DB/Object.pm b/SL/DB/Object.pm index 81ef97890..252e8ad10 100755 --- a/SL/DB/Object.pm +++ b/SL/DB/Object.pm @@ -265,7 +265,16 @@ C in the database). Assigns the attributes from C<%attributes> by calling the C 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 -- 2.20.1