We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Problem when having a "discriminatorValue" with value 0
When the query is being composed, it checks this condition in DocumentPersister.php:1473
if (! $key) { continue; }
However, this means that having a discriminatorValue with a value of 0 is not allowed. Shouldn't it be something like $key !== false instead?
Perform any document search when child classes have a discriminator with a value of 0.
const CONTENT_TYPE_NWS = 0; const CONTENT_TYPE_IMA = 1; const MAPPING = [ self::CONTENT_TYPE_NWS => ContentNews::class, self::CONTENT_TYPE_IMA => ContentImage::class, ];
The text was updated successfully, but these errors were encountered:
Most likely it should :) Feel free to give it a go and see what breaks!
Sorry, something went wrong.
I've already tried it and it works perfectly!:D
No branches or pull requests
Bug Report
Summary
Problem when having a "discriminatorValue" with value 0
Current behavior
When the query is being composed, it checks this condition in DocumentPersister.php:1473
However, this means that having a discriminatorValue with a value of 0 is not allowed. Shouldn't it be something like $key !== false instead?
How to reproduce
Perform any document search when child classes have a discriminator with a value of 0.
The text was updated successfully, but these errors were encountered: