[Bug 45023] TestBot Object Relational Mapper issues

wine-bugs at winehq.org wine-bugs at winehq.org
Wed May 30 08:30:45 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=45023

--- Comment #3 from François Gouget <fgouget at codeweavers.com> ---
And for issue number 16!

16. Item::Save() and Collection::Save() have inconsistent return values

The returned values depend on whether Save() is called on an Item or a
Collection:

  ($ErrProperty, $ErrMessage) = $Job->Save();
  ($ErrKey, $ErrProperty, $ErrMessage) = $Jobs->Save();

Notice also that the corret way to detect errors is through an if (defined
$ErrMessage). However if you use the 3 values form on an Item, $ErrMessage will
always be undefined, causing errors to not be detected.

Finally the same issue exists for the Validate() methods but those are more
rarely used.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list