adding support to hasMany relation
changing hasMany and hasOne method signuture