implemented base functional that allow to connect entities via HasOne -> HasMany relation