Skip to content

Instantly share code, notes, and snippets.

@whitewhidow
Created May 13, 2015 07:42
Show Gist options
  • Select an option

  • Save whitewhidow/165eb4dd1eaff9de3b0c to your computer and use it in GitHub Desktop.

Select an option

Save whitewhidow/165eb4dd1eaff9de3b0c to your computer and use it in GitHub Desktop.
make fosuser email nullable
/**
* @ORM\Entity
* @ORM\Table(name="fos_user")
*
* @AttributeOverrides({
* @AttributeOverride(name="emailCanonical",
* column=@ORM\Column(
* name="email_canonical",
* type="string",
* length=255,
* nullable=true,
* unique=false
* )
* ),
* @AttributeOverride(name="email",
* column=@ORM\Column(
* name="email",
* type="string",
* length=255,
* nullable=true,
* unique=false
* )
* )
* })
*
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment