2017 © Pedro Peláez
 

symfony-bundle autocomplete-form-bundle

Extend Doctrine's entity form type for autocompletion support via form event and custom entity loader exposed as 'autocomplete' form type

image

lla/autocomplete-form-bundle

Extend Doctrine's entity form type for autocompletion support via form event and custom entity loader exposed as 'autocomplete' form type

  • Tuesday, October 31, 2017
  • by ncrypthic
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*1)

$ composer require lla/autocomplete-form-bundle "~1"

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*2)

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*3)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new LLA\AutocompleteFormBundle\LLAAutocompleteFormBundle(),
        );

        // ...
    }

    // ...
}

Step 3: Use the form type

You can use the form as normal form usage. See FormComponent, (*4)

<?php
// src/AppBundle/Controller/TestController.php

// ...
class TestController extends Controller
{
    public function indexAction()
    {
        // ...
        $form = $this->createForm('form_name', 'autocomplete', array(
            'class' => 'AppBundle:YourEntity',
            'max_result' => 10, // Initial options length
            'query_builder' => function(EntityRepository $repo) {
                return $repo->createQueryBuilder();
            }
        ));

The Versions

31/10 2017

dev-master

9999999-dev

Extend Doctrine's entity form type for autocompletion support via form event and custom entity loader exposed as 'autocomplete' form type

  Sources   Download

MIT

The Requires

 

by Lim Afriyadi

13/08 2017

1.0.8

1.0.8.0

Extend Doctrine's entity form type for autocompletion support via form event and custom entity loader exposed as 'autocomplete' form type

  Sources   Download

MIT

The Requires

 

by Lim Afriyadi

13/08 2017

1.0.7

1.0.7.0

Extend Doctrine's entity form type for autocompletion support via form event and custom entity loader exposed as 'autocomplete' form type

  Sources   Download

MIT

The Requires

 

by Lim Afriyadi

13/08 2017

1.0.6

1.0.6.0

Extend Doctrine's entity form type for autocompletion support via form event and custom entity loader exposed as 'autocomplete' form type

  Sources   Download

MIT

The Requires

 

by Lim Afriyadi

03/08 2017

1.0.5

1.0.5.0

Extend Doctrine's entity form type for autocompletion support via form event and custom entity loader exposed as 'autocomplete' form type

  Sources   Download

MIT

The Requires

 

by Lim Afriyadi

02/09 2016

1.0.4

1.0.4.0

Extend Doctrine's entity form type for autocompletion support via form event and custom entity loader exposed as 'autocomplete' form type

  Sources   Download

MIT

The Requires

 

by Lim Afriyadi

21/07 2016

1.0.3

1.0.3.0

Extend Doctrine's entity form type for autocompletion support via form event and custom entity loader exposed as 'autocomplete' form type

  Sources   Download

MIT

The Requires

 

by Lim Afriyadi

10/06 2016

1.0.2

1.0.2.0

Extend Doctrine's entity form type for autocompletion support via form event and custom entity loader exposed as 'autocomplete' form type

  Sources   Download

MIT

The Requires

 

by Lim Afriyadi

10/06 2016

1.0.1

1.0.1.0

Extend Doctrine's entity form type for autocompletion support via form event and custom entity loader exposed as 'autocomplete' form type

  Sources   Download

MIT

The Requires

 

by Lim Afriyadi

09/06 2016

1.0.0

1.0.0.0

Extend Doctrine's entity form type for autocompletion support via form event and custom entity loader exposed as 'autocomplete' form type

  Sources   Download

MIT

The Requires

 

by Lim Afriyadi