public function onBeforeWrite() {
		parent::onBeforeWrite();
		if(!$this->isInDb()) {
			$this->_isCreating = true;
			$this->extend('onBeforeCreate');
		}
		if($this->isChanged('MemberID')) {
			$this->extend('onMemberLinked');
		}
	}
public function onBeforeWrite() {
		parent::onBeforeWrite();
		if(!$this->isInDb()) {
			$this->_isCreating = true;
			$this->extend('onBeforeCreate');
		}
		if($this->isChanged('MemberID')) {
			$this->extend('onMemberLinked');
		}
	}
public function onBeforeWrite ( ) { parent :: onBeforeWrite ( ) ; if ( ! $ this -> isInDb ( ) ) { $ this -> _isCreating = true ; $ this -> extend ( 'onBeforeCreate' ) ; } if ( $ this -> isChanged ( 'MemberID' ) ) { $ this -> extend ( 'onMemberLinked' ) ; } }
Add an extension point for creation and member linking
Add an extension point for creation and member linking