Use Hydrator interface to setData and toArray in DB adapters.