public function delete()
	{
		// temporary disable relations
		$tmp_relations   = $this->relations;
		$this->relations = array();

		// Build query and execute update
		$query = \DB::delete(call_user_func($this->model.'::table'));
		$tmp   = $this->build_query($query, array(), 'delete');
		$query = $tmp['query'];
		$res = $query->execute($this->write_connection);

		// put back any relations settings
		$this->relations = $tmp_relations;

		return $res > 0;
	}
public function delete()
	{
		// temporary disable relations
		$tmp_relations   = $this->relations;
		$this->relations = array();

		// Build query and execute update
		$query = \DB::delete(call_user_func($this->model.'::table'));
		$tmp   = $this->build_query($query, array(), 'delete');
		$query = $tmp['query'];
		$res = $query->execute($this->write_connection);

		// put back any relations settings
		$this->relations = $tmp_relations;

		return $res > 0;
	}
public function delete ( ) { // temporary disable relations $ tmp_relations = $ this -> relations ; $ this -> relations = array ( ) ; // Build query and execute update $ query = \ DB :: delete ( call_user_func ( $ this -> model . '::table' ) ) ; $ tmp = $ this -> build_query ( $ query , array ( ) , 'delete' ) ; $ query = $ tmp [ 'query' ] ; $ res = $ query -> execute ( $ this -> write_connection ) ; // put back any relations settings $ this -> relations = $ tmp_relations ; return $ res > 0 ; }
Run DELETE with the current values

@return  bool  success of delete operation
Run DELETE with the current values