Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Tx_Myextension_Domain_Model_Content extends Tx_Extbase_DomainObject_AbstractEntity
- {
- /**
- * @var string
- */
- protected $header;
- /**
- * @return the $header
- */
- public function getHeader()
- {
- return $this->header;
- }
- /**
- * @param string $header
- */
- public function setHeader($header)
- {
- $this->header = $header;
- }
- }
- class Tx_Myextension_Domain_Repository_ContentRepository extends Tx_Extbase_Persistence_Repository
- {
- public function initializeObject()
- {
- $querySettings = $this->objectManager->create('Tx_Extbase_Persistence_Typo3QuerySettings');
- $querySettings->setRespectStoragePage(FALSE);
- $this->setDefaultQuerySettings($querySettings);
- }
- }
- plugin.tx_myextension {
- persistence {
- classes {
- Tx_Myextension_Domain_Model_Content {
- mapping {
- tableName = tt_content
- recordType = Tx_Myextension_Domain_Model_Content
- columns {
- header.mapOnProperty = header
- }
- }
- }
- }
- }
- }
- module.tx_myextension {
- persistence < plugin.tx_myextension.persistence
- }
- SELECT COUNT(*)
- FROM tt_content
- WHERE (tt_content.CType='Tx_Myextension_Domain_Model_Content')
- AND tt_content.deleted=0 AND tt_content.hidden=0
- AND (tt_content.starttime<=1313073660)
- AND (tt_content.endtime=0 OR tt_content.endtime>1313073660)
- AND tt_content.sys_language_uid IN (0,-1)
- AND tt_content.pid IN (0)
Add Comment
Please, Sign In to add comment