bugfix of typehinting on foreign key object binding