zendframework/zf2 — pull request #4961 by TonyBogdanov (2013-08-14 14:47:37+00:00)
Title: Removed early bail for empty arrays

It seems to me, that with this segment I've removed, it is not possible to clear a collection if the passed $data is an empty array.

If I am wrong, then what is the correct way to empty a collection? I've had this issue for a long time and this actually fixed it for me. At least when using with conjunction with Doctrine 2 entities.

Haven't tested it!