Skip to content

Instantly share code, notes, and snippets.

@bjrnqprs
Forked from cedricziel/gist:6672142
Last active May 3, 2018 08:40
Show Gist options
  • Save bjrnqprs/48c2e693a66ca8f389c3 to your computer and use it in GitHub Desktop.
Save bjrnqprs/48c2e693a66ca8f389c3 to your computer and use it in GitHub Desktop.
Typo3 Extbase: Proper way to declare mapping's of tableName and columns.
config.tx_extbase {
persistence {
classes {
Vendor\MyPackage\Domain\Model\Organisation {
mapping {
columns {
tstamp.mapOnProperty = tstamp
hidden.mapOnProperty = hidden
crdate.mapOnProperty = crdate
cruser_id.mapOnProperty = cruserId
}
}
}
}
}
}
@bjrnqprs
Copy link
Author

bjrnqprs commented Jan 8, 2015

For the mapping to work in CommandControllers it is needed inside config.tx_extbase instead of plugin.tx_myext.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment