Can't find null objects in a ManyToMany that may be null
|Reported by:||ph@…||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:|
|Severity:||normal||Keywords:||null, manytomany, orm, qs-rf-fixed|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Model B defined a ManyToMany relationship to Model A that can be null. There's no way in the ORM to look up all the Bs where it's null. There might be a workaround with a custom SQL query.
Jacobkm in IRC told me to post a ticket so he doesn't forget to fix this.
Change History (8)
comment:3 Changed 10 years ago by Gary Wilson <gary.wilson@…>
- Triage Stage changed from Unreviewed to Accepted