PHPackages                             armetiz/form-extension-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. armetiz/form-extension-bundle

AbandonedSymfony-bundle[Templating &amp; Views](/categories/templating)

armetiz/form-extension-bundle
=============================

Symfony Bundle to extend Form

2231PHP

Since May 21Pushed 13y ago1 watchersCompare

[ Source](https://github.com/armetiz/ArmetizFormExtensionBundle)[ Packagist](https://packagist.org/packages/armetiz/form-extension-bundle)[ RSS](/packages/armetiz-form-extension-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

ArmetizFormExtensionBundle
==========================

[](#armetizformextensionbundle)

This bundle add a new Form type named "entity\_ajax".

It looks like the default "entity" type, but it loads only associated entities.

#### Example

[](#example)

A Book is link to User throught "owner" property.

If you are using the "entity" type on the BookType to display the "owner" property. The form will load all the "users" to render the page.

With the "entity\_ajax" type, the form will load only the current "owner". In this case, you are free to load further "users" via AJAX or something else.

Installation
------------

[](#installation)

Installation is a quick 2 step process:

1. Download ArmetizFormExtensionBundle using composer
2. Enable the Bundle

### Step 1: Download ArmetizFormExtensionBundle using composer

[](#step-1-download-armetizformextensionbundle-using-composer)

Add ArmetizFormExtensionBundle in your composer.json:

```
{
    "require": {
        "armetiz/form-extension-bundle": "1.x-dev"
    }
}
```

Now tell composer to download the bundle by running the command:

```
$ php composer.phar update armetiz/form-extension-bundle
```

Composer will install the bundle to your project's `vendor/armetiz` directory.

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

Enable the bundle in the kernel:

```
