I try to build an importer with a scheduler task.
The task creates an object manager which creates my import service. This import service has dependencies to the repository.
I simply create instances and add them to the repository.
It works well until i tried to specify on which pid my records are supposed to be saved. I tried to configure it in setup.txt.
plugin.tx_extkey {
view {
templateRootPath = {$plugin.tx_extkey.view.templateRootPath}
partialRootPath = {$plugin.tx_extkey.view.partialRootPath}
layoutRootPath = {$plugin.tx_extkey.view.layoutRootPath}
}
persistence {
storagePid = {$plugin.tx_extkey.persistence.storagePid}
classes {
EXTNAME\EXTNAME\Domain\Model\MODELNAME {
newRecordStoragePid = {$plugin.tx_extkey.persistence.storagePid}
}
}
}
features {
# uncomment the following line to enable the new Property Mapper.
# rewrittenPropertyMapper = 1
}
}
module.tx_extkey {
persistence < plugin.tx_extkey.persistence
}
But that didn't work. Everything is still saved to pid 1
.
Are there any pitfalls that I might have overlooked?