Rewrite getByProperties