Skip to content

[Doctrine] Automapping validation example seems broken #19405

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

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

chadyred
Copy link
Contributor

@chadyred chadyred commented Jan 10, 2024

As the type hinting from setter is available, this example will not work (and not nullable in that case, it is not possible to run this example with the doc context)

Even without declare(strict_types=1); string which could be convert to integer will work but with it, impossible to run this example, as we will have the error "int" expected.

@chadyred
Copy link
Contributor Author

I have added more field

image

@chadyred chadyred changed the title [Doctrine] Update doctrine.rst [Doctrine] Automapping validation example seems broken Jan 10, 2024
As the type hinting from setter is available, this example will not work.

Even without `declare(strict_types=1);` string which could be convert to integer will work but with it, impossible to run this example, as we will have the error "int" expected.
@javiereguiluz
Copy link
Member

Thanks Florian! While merging, I did a minor tweak (See ccaf3a1) which I think it was needed to make the example easier to understand.

@chadyred
Copy link
Contributor Author

It sounds good to me, well done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants