class User
{
/**
* @ORM\Column(type="string", nullable=false)
*/
private string $name;
public setName(string $name){};
public getName(): string {};
}
💡 Remove ALL references to the column (property and accessors)
💡 Make the column nullable
- /**
- * @ORM\Column(type="string", nullable=false)
- */
- private string $name;
- public setName(string $name){};
- public getName(): string {};
+ ALTER TABLE user ALTER name DROP NOT NULL
💡 Remove the column
+ ALTER TABLE user DROP name