AuthBucket\Bundle\OAuth2Bundle\Entity\AbstractEntityRepository::deleteModel PHP Method

deleteModel() public method

public deleteModel ( AuthBucket\OAuth2\Model\ModelInterface $model )
$model AuthBucket\OAuth2\Model\ModelInterface
    public function deleteModel(ModelInterface $model)
    {
        $this->getEntityManager()->remove($model);
        $this->getEntityManager()->flush();
        return $model;
    }