Changed the comparison operator for the Doctrine Collections