/** * 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); }
/** * 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(ObjectManager $em, $class, $property = null, $qb = null, $choices = null, $groupBy = null, $ajax = false) { $this->ajax = $ajax; $this->classMetadata = $em->getClassMetadata($class); if ($property) { $this->propertyPath = new PropertyPath($property); } parent::__construct($em, $class, $property, $qb, $choices, $groupBy); }
/** * 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(ObjectManager $em, $class, $property = null, $qb = null, $choices = null, $groupBy = null, $ajax = false) { $this->ajax = $ajax; $this->classMetadata = $em->getClassMetadata($class); if ($property) { $this->propertyPath = new PropertyPath($property); } $loader = $qb ? new ORMQueryBuilderLoader($qb, $em, $class) : null; parent::__construct($em, $class, $property, $loader, $choices, array(), $groupBy); }