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

Files: 
CommentFileSizeAuthor
#2 entity_unset_fix.patch6.73 KBfago
#1 entity_unset_fix.patch2.09 KBfago
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch entity_unset_fix.patch. This may be a -p0 (old style) patch, which is no longer supported by the testbots.
[ View ]

Comments

Status:Active» Needs review
Issue tags:+Needs tests
StatusFileSize
new2.09 KB
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch entity_unset_fix.patch. This may be a -p0 (old style) patch, which is no longer supported by the testbots.
[ View ]

attached patch works for me, we should add some tests though.

Status:Needs review» Fixed
StatusFileSize
new6.73 KB

I've added tests + some further improvements, see attached patch.

As tests are green, I've committed the patch.

Automatically closed -- issue fixed for 2 weeks with no activity.