2

It appears that Doctrine 2.0 does not support any default values. What's is then the best solution for adding new columns?

1 Answer 1

7

Just set default values on your entities:

/** @Entity */ class SomeEntity { /** @Column(length=50) */ private $someFieldWithDefault = 'defaultvalue'; //... } 
Sign up to request clarification or add additional context in comments.

1 Comment

that sounds easy enough. Thanks!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.