public function delete($id)
    {
        $query = $this->createQueryBuilder();

        $query->where($this->getPrimaryKey($query), $id);
        $query->delete();
    }
public function delete($id)
    {
        $query = $this->createQueryBuilder();

        $query->where($this->getPrimaryKey($query), $id);
        $query->delete();
    }
public function delete ( $ id ) { $ query = $ this -> createQueryBuilder ( ) ; $ query -> where ( $ this -> getPrimaryKey ( $ query ) , $ id ) ; $ query -> delete ( ) ; }
Delete a resource by its primary key
@param  mixed $id
@return void
Delete a resource by its primary key