[Closed] BUG: Doctrine2, Default is not NULL

0 votes
asked Jul 14, 2015 in Solved by skler (120 points)
recategorized Oct 13, 2015 by ludek.vodicka

I did an import of the ORM schema but when not defined the importer assumes that a value is default null changing the definition of each column from:

  • @ORM\Column(name="key_string", type="string", length=32)

to:

  • @ORM\Column(type="string", length=32, nullable=true, name="key_string")

1 Answer

0 votes
answered Jul 14, 2015 by ludek.vodicka Skipper developer (140,450 points)

Nullable=true is default value. So it doesn't matter if "nullabe=true" is exported or not, the result is the same.

...