コード例 #1
0
 /**
  * Creates pager from entity class
  *
  * @param string $entity Full entity class path
  * @param ParameterBag $params
  * 
  * @return Pager
  */
 public function fromEntity($entityClass, ParameterBag $params)
 {
     return $this->getNewPager($params, $this->doctrine->getEntityManagerForClass($entityClass))->setEntityClass($entityClass);
 }