Example #1
0
 /**
  * Gets the SQL DELETE statement.
  * 
  * @return string
  */
 private function _getDeleteStatement()
 {
     $tableName = Db::quoteId($this->_tableName);
     $pkName = Db::quoteId($this->_primaryKey->getName());
     $pkValue = $this->_db->quote($this->_primaryKey->getValue());
     return "delete from {$tableName} where {$pkName} = {$pkValue}";
 }