There might occur some problem in this line because $identifier may also be a bigint, not only the integer value. I have read a PR base on the same problem today. Unfortunatelly I cannot find this one.

Actually in doctrine repo you can find e.g.

    if (in_array($mapping['type'], array('integer', 'bigint', 'smallint')))