Doctrine 1

Unexpected results with equal many-to-many relations