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