public function delete () : bool
	{
        $dbObject  = Database::getInstance();
		$sqlQuery  = "DELETE FROM ".static::$tableName." WHERE id=";
		$sqlQuery .= $dbObject->escapeValue($this->id)." LIMIT 1";
		$dbObject->query($sqlQuery);
		static::$affectedRows = $dbObject->affectedRows();
		return ($dbObject->affectedRows() == 1) ? TRUE : FALSE;
	}
public function delete () : bool
	{
        $dbObject  = Database::getInstance();
		$sqlQuery  = "DELETE FROM ".static::$tableName." WHERE id=";
		$sqlQuery .= $dbObject->escapeValue($this->id)." LIMIT 1";
		$dbObject->query($sqlQuery);
		static::$affectedRows = $dbObject->affectedRows();
		return ($dbObject->affectedRows() == 1) ? TRUE : FALSE;
	}
public function delete ( ) : bool { $ dbObject = Database :: getInstance ( ) ; $ sqlQuery = "DELETE FROM " . static :: $ tableName . " WHERE id=" ; $ sqlQuery .= $ dbObject -> escapeValue ( $ this -> id ) . " LIMIT 1" ; $ dbObject -> query ( $ sqlQuery ) ; static :: $ affectedRows = $ dbObject -> affectedRows ( ) ; return ( $ dbObject -> affectedRows ( ) == 1 ) ? TRUE : FALSE ; }
Delete a record from the database
@return bool
Delete a record from the database