remove toArray method from Entity realisation