PIM-3461: Mark attribute à read only when updated by variant

| Q                    | A
| -------------------- | ---
| Bug fix?             | N
| New feature?         | Y
| BC breaks?           | N
| CI currently passes? | Y
| Tests pass?          | Y
| Scenarios pass?      | ?
| Checkstyle issues?*  | N
| PMD issues?**        | N
| Changelog updated?   | N
| Fixed tickets        | PIM-3461
| DB schema updated?   | N
| Migration script?    | N
| Doc PR               |
what is this weird notation ? ;) ternary operator is a quite compact notation already let's keep it readable :)