Ojs\ApiBundle\Handler\JournalHandler::delete PHP Method

delete() public method

Delete a Journal.
public delete ( Journal $entity ) : Journal
$entity Ojs\JournalBundle\Entity\Journal
return Ojs\JournalBundle\Entity\Journal
    public function delete(Journal $entity)
    {
        $this->om->remove($entity);
        $this->om->flush();
        return $this;
    }