Skip to content
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

Typed Property Defaults: problem with nullable properties #8770

Closed
adpeyre opened this issue Jun 16, 2021 · 2 comments
Closed

Typed Property Defaults: problem with nullable properties #8770

adpeyre opened this issue Jun 16, 2021 · 2 comments

Comments

@adpeyre
Copy link

adpeyre commented Jun 16, 2021

Hi,

Since the 2.9.2 release, my nullable php typed properties are not correctly taken into account by Doctrine.
For example, this attribute is not nullable in database:

 #[ORM\Column]
 public ?\DateTimeImmutable $canceledAt = null;

I needed to downgrade to 2.9.1.

Thx

@greg0ire
Copy link
Member

Hi! Have you read #8732 ?

@adpeyre
Copy link
Author

adpeyre commented Jun 16, 2021

Thanks @greg0ire. I missed that. (I had deleted all my null constraints lol).
Merci :D

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

No branches or pull requests

2 participants