Esempio n. 1
0
 /**
  * Deletes a model from the db
  * 
  * @param BaseDomainModel $model
  * @return Mapper
  */
 public function delete(BaseDomainModel $model)
 {
     list($whereCondition, $bindings) = $this->getIdentityCondition($model->__identity());
     $this->db->delete($this->tableName, $whereCondition, $bindings);
     return $this;
 }