-
-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deserialization fails when discriminator base class extends another class #182
Comments
Same here, after small research I noticed that base class (in this case According to the doc its not allowed to define This is class JMS\Serializer\Metadata\ClassMetadata
{
...
public $discriminatorDisabled => bool(false)
public $discriminatorBaseClass => string(7) "Vehicle"
public $discriminatorFieldName => string(4) "type"
public $discriminatorValue => string(4) "car"
public $discriminatorMap => array(2) {
'car' => string(3) "Car",
'moped' => string(5) "Moped"
}
...
} This is class JMS\Serializer\Metadata\ClassMetadata
{
...
public $discriminatorDisabled => bool(false)
public $discriminatorBaseClass => NULL
public $discriminatorFieldName => NULL
public $discriminatorValue => NULL
public $discriminatorMap => array(0) {}
...
} |
Same here (btw not related to #56), that's a problem if you have a base entity class. |
solved by #382 |
Still reproducing:
output
|
This code:
Fails with:
Am I missing something?
The text was updated successfully, but these errors were encountered: