[Tickets #10880] Re: Rdo: Make *- to-one-relations aware of "no relation" state
bugs at horde.org
bugs at horde.org
Tue Jan 3 09:04:46 UTC 2012
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/10880
------------------------------------------------------------------------------
Ticket | 10880
Updated By | Jan Schneider <jan at horde.org>
Summary | Rdo: Make *- to-one-relations aware of "no relation"
| state
Queue | Horde Framework Packages
Version | Git master
Type | Enhancement
-State | New
+State | Feedback
Priority | 1. Low
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
Jan Schneider <jan at horde.org> (2012-01-03 10:04) wrote:
I'm not sure whether returning an empty result is the correct behavior
by design, but returning arbitrary records on a null reference key
definitly is not.
Throwing an exception could be considered a bug fix instead of a BC
break, but returning an empty result sounds feasible too. If we are
going to throw an exception, than rather in the case where the linked
record is missing, than when the link is NULL.
It would speed up implementing a solution if you could create unit
tests for those two cases.
More information about the bugs
mailing list