Exemplo n.º 1
0
 public function delete($con = null)
 {
     TagDb::removeFromPackage($this, $con);
     return parent::delete($con);
 }
Exemplo n.º 2
0
 /**
  * オブジェクトのレコードを削除.
  */
 public static function delete(mfwObject $obj, $con = null)
 {
     $table = static::TABLE_NAME;
     $sql = "DELETE FROM `{$table}` WHERE `id` = ?";
     return mfwDBIBase::query($sql, array($obj->getId()), $con);
 }