Doctrine 2 - ORM

Incorrect work with default values, indexes, autoincrement (patch attached)