public function delete($entity, array $options = array())
{
$params = compact('entity', 'options');
return static::_filter(__FUNCTION__, $params, function ($self, $params) {
$options = $params + $params['options'] + array('model' => $self, 'type' => 'delete');
unset($options['options']);
$query = $self::invokeMethod('_instance', array('query', $options));
return $self::connection()->delete($query, $options);
});
}