Created
January 19, 2015 12:23
-
-
Save derhansen/7fdaa2e06b4dd01cf706 to your computer and use it in GitHub Desktop.
How to extend sf_event_mgt with own fields (additional changes after creation of own extension)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace YOURNAMESPACE\YourExtKey\Controller; | |
class EventController extends \DERHANSEN\SfEventMgt\Controller\EventController { | |
/** | |
* Saves the registration | |
* | |
* @param $registration \YOURNAMESPACE\YourExtKey\Domain\Model\Registration | |
* @param $event \DERHANSEN\SfEventMgt\Domain\Model\Event | |
* @validate $registration \DERHANSEN\SfEventMgt\Validation\Validator\RegistrationValidator | |
* @return void | |
*/ | |
public function saveRegistrationAction(\YOURNAMESPACE\YourExtKey\Domain\Model\Registration $registration, \DERHANSEN\SfEventMgt\Domain\Model\Event $event) { | |
parent::saveRegistrationAction($registration, $event); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.tx_extbase { | |
persistence { | |
classes { | |
DERHANSEN\SfEventMgt\Domain\Model\Registration { | |
subclasses { | |
Tx_SfTapaEventfields_Registration = YOURNAMESPACE\YourExtKey\Domain\Model\Registration | |
} | |
} | |
YOURNAMESPACE\YourExtKey\Domain\Model\Registration { | |
mapping { | |
tableName = tx_sfeventmgt_domain_model_registration | |
recordType = Tx_YourExtKey_Registration | |
} | |
} | |
} | |
} | |
objects { | |
DERHANSEN\SfEventMgt\Controller\EventController.className = YOURNAMESPACE\YourExtKey\Controller\EventController | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment