first of all, check the functions inside the model. You surely have functions like addCategory(), getCategories(), removeCategory() or setCategories().
second, if really needed, do not get the repository using the makeInstance function (it is outdated), simply inject it or use the ObjectManager:
/**
* categoryRepository
*
* @var \TYPO3\GoMapsExt\Domain\Repository\CategoryRepository
* @inject
*/
protected $categoryRepository;
or/and
$objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
if (!is_object($this->categoryRepository)) {
$this->categoryRepository = $objectManager->get('TYPO3\\GoMapsExt\\Domain\\Repository\\CategoryRepository');
}
Because Typo3 can be buggy, I usually use both.