bugfix for deserialize doctrine entity