usage createEntityFromArray in controller