views:

77

answers:

0

I have an array of default values that I'd like to merge with a Doctrine record. I tried using Doctrine's merge method but it's overwriting existing values with the merge array, even if the merge array contains null values. I'd like to merge in a way that only null or empty values are replaced with existing default values.