public function delete($productCategory)
    {
        if (!is_object($productCategory)) {
            $productCategory = $this->find($productCategory);
        }

        if ($productCategory instanceof ProductCategory) {
            if ($this->fireEvent('deleting', array($productCategory)) === false) {
                return false;
            }

            $productCategory->delete($this);

            $this->fireEvent('deleted', array($productCategory));
        }
    }
public function delete($productCategory)
    {
        if (!is_object($productCategory)) {
            $productCategory = $this->find($productCategory);
        }

        if ($productCategory instanceof ProductCategory) {
            if ($this->fireEvent('deleting', array($productCategory)) === false) {
                return false;
            }

            $productCategory->delete($this);

            $this->fireEvent('deleted', array($productCategory));
        }
    }
public function delete ( $ productCategory ) { if ( ! is_object ( $ productCategory ) ) { $ productCategory = $ this -> find ( $ productCategory ) ; } if ( $ productCategory instanceof ProductCategory ) { if ( $ this -> fireEvent ( 'deleting' , array ( $ productCategory ) ) === false ) { return false ; } $ productCategory -> delete ( $ this ) ; $ this -> fireEvent ( 'deleted' , array ( $ productCategory ) ) ; } }
Delete a ProductCategory.

@param \Subbly\Model\ProductCategory|string $productCategory The productCategory_uid or the ProductCategory model

@return \Subbly\Model\ProductCategory

@pi
Delete a ProductCategory .