follow-up from #1178052: Unsetting entity relationships does not work:
* we should fix validate() to not allow NULL values / empty lists in case a property is required.
* setting a multiple field to NULL results in warnings
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | entity_unset_fix.patch | 6.73 KB | fago |
| #1 | entity_unset_fix.patch | 2.09 KB | fago |
Comments
Comment #1
fagoattached patch works for me, we should add some tests though.
Comment #2
fagoI've added tests + some further improvements, see attached patch.
As tests are green, I've committed the patch.