toArray on entity helper
computeDiff on entity service