- Issue created by @joachim
- πΊπΈUnited States mikelutz Michigan, USA
Yes, we should probably throw an exception in the first case. The reason we don't is because of stubbing, when we run migrations with null source values, we don't want the subprocess to explode when it gets null instead of an empty array. We could make this more explicit, though, return an empty array on null only, and document it all better.
The second case doesn't make any sense to use subprocess on. Sounds like you want to treat an array of scalars as if it's a single subrow to process, but that's not what subprocess does, and you wouldn't need subprocess, you could just set
property/0/subfield:property/subfield
directly.