Model/Behavior/RevisionBehavior.php
public function afterDelete(Model $Model) {
		if ($this->settings[$Model->alias]['auto'] === false) {
			return;
		}
		if (!$Model->ShadowModel) {
			return;
		}
		if (isset($this->deleteUpdates[$Model->alias]) && !empty($this->deleteUpdates[$Model->alias])) {
			foreach ($this->deleteUpdates[$Model->alias] as $assocAlias => $assocIds) {
				$Model->{$assocAlias}->updateRevisions($assocIds);
			}
			unset($this->deleteUpdates[$Model->alias]);
		}
	}
public function afterDelete(Model $Model) {
		if ($this->settings[$Model->alias]['auto'] === false) {
			return;
		}
		if (!$Model->ShadowModel) {
			return;
		}
		if (isset($this->deleteUpdates[$Model->alias]) && !empty($this->deleteUpdates[$Model->alias])) {
			foreach ($this->deleteUpdates[$Model->alias] as $assocAlias => $assocIds) {
				$Model->{$assocAlias}->updateRevisions($assocIds);
			}
			unset($this->deleteUpdates[$Model->alias]);
		}
	}
public function afterDelete ( Model $ Model ) { if ( $ this -> settings [ $ Model -> alias ] [ 'auto' ] === false ) { return ; } if ( ! $ Model -> ShadowModel ) { return ; } if ( isset ( $ this -> deleteUpdates [ $ Model -> alias ] ) && ! empty ( $ this -> deleteUpdates [ $ Model -> alias ] ) ) { foreach ( $ this -> deleteUpdates [ $ Model -> alias ] as $ assocAlias => $ assocIds ) { $ Model -> { $ assocAlias } -> updateRevisions ( $ assocIds ) ; } unset ( $ this -> deleteUpdates [ $ Model -> alias ] ) ; } }
Causes revision for habtm associated models if that model does version control
on their relationship. BeforeDelete identifies the related models that will need
to do the revision update in afterDelete. Uses

@param unknown_type $Model
@return void
Causes revision for habtm associated models if that model does version control on their relationship . BeforeDelete identifies the related models that will need to do the revision update in afterDelete . Uses