Flag of Ukraine
SymfonyCasts stands united with the people of Ukraine
Next Chapter

Challenge #1 of 1


Q: 

Check out the following property:

#[Groups(['treasure:read', 'treasure:write'])]
private ?string $name = null;

// ... getName() and setName($name)

We want to make name read-only in our API (meaning that it can be set when creating the resource, but not later).

Which option would NOT accomplish this?

userVoice