/**
* Constructs
*
* @param EntityManager $em
* @param string $class
* @param string $property
* @param QueryBuilder $qb
* @param array|\Closure $choices
* @param string $groupBy
* @param boolean $ajax
*/
public function __construct(EntityManager $em, $class, $property = null, $qb = null, $choices = null, $groupBy = null, $ajax = false)
{
$this->ajax = $ajax;
if ($property) {
$this->propertyPath = new PropertyPath($property);
}
parent::__construct($em, $class, $property, $qb, $choices, $groupBy);
}