public function setEntityManager(EntityManager $em)
    {
        $this->_queryBuilder = new DoctrineBuilder($this->_container, $em);
        return $this;
    }
public function setEntityManager(EntityManager $em)
    {
        $this->_queryBuilder = new DoctrineBuilder($this->_container, $em);
        return $this;
    }
public function setEntityManager ( EntityManager $ em ) { $ this -> _queryBuilder = new DoctrineBuilder ( $ this -> _container , $ em ) ; return $ this ; }
set entity manager

@param EntityManager $em

@return \Ali\DatatableBundle\Util\Datatable
set entity manager