The cause As it turns out, the cause of the problem is the fact that when you specify strategy=”AUTO” for your ID-field, Doctrine2 will ignore any existing ID you’ve set in the entity. It will generate one because, well, you’ve specified it should be doing this. And usually, this is correct behaviour, but with the…