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

Undefined Type::JSON_ARRAY #995

Closed
Gulivertx opened this issue Oct 16, 2021 · 2 comments
Closed

Undefined Type::JSON_ARRAY #995

Gulivertx opened this issue Oct 16, 2021 · 2 comments

Comments

@Gulivertx
Copy link

Gulivertx commented Oct 16, 2021

Hello,

I faced to an issue to add properties to entities with the following error :

Undefined constant Doctrine\DBAL\Types\Type::JSON_ARRAY

Downgrading doctrine/orm and doctrine/dbal fix the issue.

  • Downgrading doctrine/dbal (3.1.3 => 2.13.4)
  • Downgrading doctrine/orm (2.10.1 => 2.9.6)
@BASAKSemih
Copy link

Hello, when i create my projet i do a symfony make:user, after i want add property, i do make:entity User, and i got the same error.
https://sharemycode.io/c/bdce74c

In MakeEntity.php line 379:

Undefined class constant 'JSON_ARRAY'

@wouterj
Copy link
Member

wouterj commented Oct 16, 2021

Hi there! Thanks for reporting the issue.

This has been reported several times already and a fix has been merged (but not yet released) in #991 It's often a great idea to check the recently reported issues before opening a new one - that saves you and us some time :)

@wouterj wouterj closed this as completed Oct 16, 2021
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

3 participants