Because method addEntitie in entity OneToManyEntity has argument $modifyValue = true and in this test is entities given as array, property field will be modified. I can not disable the default behaviour if I pass an array.