Skip to content

Commit

Permalink
Merge pull request #71 from sterrien/2.0
Browse files Browse the repository at this point in the history
2.0 Jquery autocomplete entity (rollback)
  • Loading branch information
genemu committed Mar 19, 2012
2 parents b8eed2c + 85adf0d commit 2360300
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Form/Doctrine/ChoiceList/AjaxEntityChoiceList.php
Expand Up @@ -33,10 +33,10 @@ class AjaxEntityChoiceList extends EntityChoiceList
* @param string $class * @param string $class
* @param string $property * @param string $property
* @param QueryBuilder $qb * @param QueryBuilder $qb
* @param array|\Closure $choices * @param null|array|\Closure $choices
* @param boolean $ajax * @param boolean $ajax
*/ */
public function __construct(EntityManager $em, $class, $property = null, $qb = null, $choices = array(), $ajax = false) public function __construct(EntityManager $em, $class, $property = null, $qb = null, $choices = null, $ajax = false)
{ {
$this->ajax = $ajax; $this->ajax = $ajax;


Expand Down
2 changes: 1 addition & 1 deletion Form/Doctrine/Type/AjaxEntityType.php
Expand Up @@ -49,7 +49,7 @@ public function getDefaultOptions(array $options)
'class' => null, 'class' => null,
'property' => null, 'property' => null,
'query_builder' => null, 'query_builder' => null,
'choices' => array(), 'choices' => null,
'ajax' => false 'ajax' => false
); );


Expand Down

0 comments on commit 2360300

Please sign in to comment.