public function deleteItem($id = null)
    {
        if ($id === null) {
            throw new ItemNotSelectedException;
        }
        $entity = $this->getById($id);
        $this->deleteEntity($entity);
    }
public function deleteItem($id = null)
    {
        if ($id === null) {
            throw new ItemNotSelectedException;
        }
        $entity = $this->getById($id);
        $this->deleteEntity($entity);
    }
public function deleteItem ( $ id = null ) { if ( $ id === null ) { throw new ItemNotSelectedException ; } $ entity = $ this -> getById ( $ id ) ; $ this -> deleteEntity ( $ entity ) ; }
Method for deleting an item
@param type $id
@throws ItemNotSelectedException
Method for deleting an item