6.0.0-alpha10
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
5/16/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#10880] Rdo: Make *- to-one-relations aware of "no relation" state
*
Your Email Address
*
Spam protection
Enter the letters below:
. .. .. ..___. . |\ || ||_/ [__ |__| | \||/\|| \[___| |
Comment
>> Rdo currently doesn't understand the concept of a missing relation. >> I'd suggest to either return no object or an exception. >> Consistence with to-many-relations is hard. >> These relations always return a list object, possibly an empty one. >> As to-one-relations are often used in chains (at least in my code) >> I'd prefer a clean exception over an empty result but the current >> situation is worst for me. > > When there is a value in the ID field (0, 33, "somekey" as opposed to > '' or NULL), but the referenced object is no longer there, I get an > empty result rather than a wrong object or an exception. Trying to > blindly execute code on this not-an-object results in a crash. > > Changing this too would be clearly BC breaking.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers