I'm quite new to Extbase and I'm trying to programmatically persist a new Model. The following code works:
$testModel = $this->objectManager->create('Tx_MyExtension_Domain_Model_Test');
$testModel->setName('testing');
$this->TestRepository->add($testModel);
$this->persistenceManager->persistAll();
However, I would like to change the storage folder it is put in (thus; change the pid field the record gets in the database). How should I do this?