File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ template fo render `Country` fields.
1212
1313Starting from this EasyAdmin version, ` Country ` fields allow to select more
1414than one value. That's why the type of the formatted value has changed from
15- ` ?string ` to ` ?array ` . E.g. if the value of your entity property is ` es ` ;
15+ ` ?string ` to ` ?array ` . E.g. if the value of your entity property is ` ES ` ;
1616before, ` field.formattedValue ` stored the string ` 'Spain' ` and now it stores
17- the array ` ['es ' => 'Spain'] ` .
17+ the array ` ['ES ' => 'Spain'] ` .
1818
1919The country code (used to display the country flag) is now the key of the new
2020array. Before, you had to use an internal propery called ` flagCode ` which has
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ string conversion manually::
5050
5151 public function setCountry(?array $countryCodes): self
5252 {
53- $this->country = null === $countryCodes : null : implode('|', $countryCodes);
53+ $this->country = null === $countryCodes ? '' : implode('|', $countryCodes);
5454
5555 return $this;
5656 }
You can’t perform that action at this time.
0 commit comments