Depends if $resource->sv_prefix_ids is already instantiated as an array and if it has values.
$resource->sv_prefix_ids = [$resource->prefix_id]; - This will create a brand new array with exactly one value.
$resource->sv_prefix_ids[] = $resource->prefix_id; - This will append the value onto the end of the array.