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

Column 'body' cannot be null #2

Open
Chapullin opened this issue May 22, 2019 · 1 comment
Open

Column 'body' cannot be null #2

Chapullin opened this issue May 22, 2019 · 1 comment

Comments

@Chapullin
Copy link

Leaving empty body in the form, it returns:
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'body' cannot be null

I edit \src\Entity\Article.php

/**
 * @ORM\Column(type="text", nullable=true)
 */
private $body = null;

and works perfectly.

@MoatazAbdAlmageed
Copy link
Contributor

@Chapullin Good catch , I suggest you create a pull request for this update and ask @bradtraversy to check and merge it.

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