Exemplo n.º 1
0
 protected function _processDeleteQuery(SimDAL_Mapper_Entity $mapping, $id)
 {
     $pk = $mapping->getPrimaryKeyColumn();
     $sql = "DELETE FROM " . $this->_quoteIdentifier($mapping->getTable()) . " WHERE `{$pk->getColumn()}`=" . $id;
     return $sql;
 }
Exemplo n.º 2
0
Arquivo: Id.php Projeto: andho/simdal
 public function getLeftValue()
 {
     return $this->_entity->getPrimaryKeyColumn();
 }