this isn't an appropriate usage, you should use `setAttributes()` for this instead, otherwise you're ignoring `$name` which is very confusing.