public function _init() {
		parent::_init();
		if (!$model = $this->_model) {
			throw new ConfigException("`'model'` option needs to be defined.");
		}
		$behavior = $this;
		$model::applyFilter('save', function($self, $params, $chain) use ($behavior) {
			if ($behavior->invokeMethod('_beforeSave', [$params])) {
				return $chain->next($self, $params, $chain);
			}
		});

		$model::applyFilter('delete', function($self, $params, $chain) use ($behavior) {
			if ($behavior->invokeMethod('_beforeDelete', [$params])) {
				return $chain->next($self, $params, $chain);
			}
		});
	}