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
> Unfortunately, the join code for eager relations is not trivial to > patch, at least I did not find an elegant way. to say "join result > AND everything where the join key is null. > > The alternative is also not great: > > Always use the lazy code path (but on load instead of on request) > > For broken relation keys, my current approach is to overload certain > mappers to null the key on failure or on ::delete of the partner. > It's sort of messy and should best be handled in the relation > configuration: > > 'hosts' => array('type' => Horde_Rdo::ONE_TO_MANY, > 'foreignKey' => 'device_id', > 'onDelete' => ['delete' | 'removeRelation'] > 'mapper' => 'APP_HostMapper'), > >
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