add getters and setters for the has many api