src/libraries/adapters/DatabaseMySql.php
/**
    * Delete albums for an element from the mapping table
    *
    * @param string $id Element id
    * @return boolean
    */
Delete albums for an element from the mapping table
@param string $id Element id
@return boolean
Delete albums for an element from the mapping table @param string $id Element id @return boolean
private function deleteAlbumsFromElement($id)
  {
    $res = $this->db->execute("DELETE FROM `{$this->mySqlTablePrefix}elementAlbum` WHERE `owner`=:owner AND `type`=:type AND `element`=:album", array(':owner' => $this->owner, ':type' => 'photo', ':album' => $id));
    return $res !== false;
  }
private function deleteAlbumsFromElement ( $ id ) { $ res = $ this -> db -> execute ( " DELETE FROM ` { $ this -> mySqlTablePrefix } elementAlbum` WHERE `owner`=:owner AND `type`=:type AND `element`=:album " , array ( ':owner' => $ this -> owner , ':type' => 'photo' , ':album' => $ id ) ) ; return $ res !== false ; }
Delete albums for an element from the mapping table
 @param string $id Element id
 @return boolean
Delete albums for an element from the mapping table @param string $id Element id @return boolean