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