The primary key columns don't have to be in the same order as the table columns

This happens when the columns are created in a different order then in the PK. This doesn't happen with Doctrine, as the order is taken from the PK.