Esempio n. 1
0
 public function deleteByExample(OW_Example $example)
 {
     if ($example === null || mb_strlen($example->__toString()) === 0) {
         throw new InvalidArgumentException('example must not be null or empty');
     }
     $sql = 'DELETE FROM ' . $this->getTableName() . $example;
     $this->clearCache();
     return $this->dbo->delete($sql);
 }