You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Am using a input DTO (and API Platform), and it seems that solely the promoted property on the constructor of the Doctrine Entity does not get updated.
How to reproduce
Situation that does not work
With the code below the name on the Bar entity does not get changed.
finalclass BarUpdateInput
{
publicstring$name;
}
#[ORM\Entity]
class Bar
{
#[ORM\Id]
publicstring$id;
publicfunction__construct(
#[ORM\Column]
publicstring$name;
) {
}
Situation that does work
finalclass BarUpdateInput
{
publicstring$name;
}
#[ORM\Entity]
class Bar
{
#[ORM\Id]
publicstring$id;
#[ORM\Column]
publicstring$name;
publicfunction__construct(
string$name,
) {
}
``
### Possible Solution
Probably the `ObjectMapper:87-101` code needs some tweaking to map changes on existing Doctrine entity objects as well.
### Additional Context
* api platform
* doctrine
The text was updated successfully, but these errors were encountered:
Symfony version(s) affected
7.3.0
Description
Am using a input DTO (and API Platform), and it seems that solely the promoted property on the constructor of the Doctrine Entity does not get updated.
How to reproduce
Situation that does not work
With the code below the name on the Bar entity does not get changed.
Situation that does work
The text was updated successfully, but these errors were encountered: