Symfony3 framework, Doctrine2 ORM.
When exporting Entities that contain an constraint, the columns field in the Table annotation is populated with entity property names, not DB column names. This causes an error if the property names are camelCase and the column names are underscore_case.
In other words, this:
@ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(name="sns_recip", columns={"snsNotificationId","snsRecipient"})})
should be this:
@ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(name="sns_recip", columns={"sns_notification_id","sns_recipient"})})