public function erase(){
    	if($this->exists())
		{
			$query = new Query(static::table());
			$query->delete()->where($this->getIdentifyCondition());
			if($query->execute())
                $this->clear();
            return $query->success();
		}
        return false;
    }
public function erase(){
    	if($this->exists())
		{
			$query = new Query(static::table());
			$query->delete()->where($this->getIdentifyCondition());
			if($query->execute())
                $this->clear();
            return $query->success();
		}
        return false;
    }
public function erase ( ) { if ( $ this -> exists ( ) ) { $ query = new Query ( static :: table ( ) ) ; $ query -> delete ( ) -> where ( $ this -> getIdentifyCondition ( ) ) ; if ( $ query -> execute ( ) ) $ this -> clear ( ) ; return $ query -> success ( ) ; } return false ; }
esegue la rimozione dell'elemento dal db
esegue la rimozione dell elemento dal db