/**
  * Delete object in database.
  *
  * @param[in] string|Object $object Object type to be removed.
  * @param[in] int $objectid Object to be added in the database.
  *
  * @snippet test.mapper.class.php testDelete()
  */
 public static function delete($object, $objectid)
 {
     $objectName = Mapper::_getName($object);
     $preparedValue = array();
     $preparedValue[] = $objectid;
     DB::getInstance()->execute('DELETE FROM ' . strtolower($objectName) . ' WHERE id=?', $preparedValue);
 }