Parent key methods visiblity
Import interface.
Merge pull request #2976 from anlutro-pull-requests/hasoneormany-parentkey-visibility

Parent key methods visiblity
Fix docblock.
Fix test on Windows.
Merge branch '4.1'