Fix for Doctrine2's lack of Bitwise