You are changing the column name of the primary key (from id to user_id). I'd suggest NOT to change the default name for identifier because Doctrine make assumptions about this name when using those entities in associations (and User one is often used !). As a consequence, we need to add a @JoinColumn and change the referencedColumn attribute whenever we have an association to a user, which is not intuitive and very annoying.
I had this problem in ZfcUserDoctrine too, and I'd like not to have it here. We should favor the default usage here.
Here : https://github.com/Bacon/BaconUser/blob/master/config/doctrine/BaconUser.Entity.User.dcm.xml#L9
You are changing the column name of the primary key (from id to user_id). I'd suggest NOT to change the default name for identifier because Doctrine make assumptions about this name when using those entities in associations (and User one is often used !). As a consequence, we need to add a @JoinColumn and change the referencedColumn attribute whenever we have an association to a user, which is not intuitive and very annoying.
I had this problem in ZfcUserDoctrine too, and I'd like not to have it here. We should favor the default usage here.