An open API service indexing awesome lists of open source software.

https://github.com/qbbr/entityhiddentypebundle

Symfony 2 entity hidden form type
https://github.com/qbbr/entityhiddentypebundle

doctrine-orm formtype php symfony

Last synced: about 2 months ago
JSON representation

Symfony 2 entity hidden form type

Awesome Lists containing this project

README

          

# EntityHiddenTypeBundle

[![Latest Stable Version](https://poser.pugx.org/qbbr/entity-hidden-type-bundle/v/stable)](https://packagist.org/packages/qbbr/entity-hidden-type-bundle)
[![Total Downloads](https://poser.pugx.org/qbbr/entity-hidden-type-bundle/downloads)](https://packagist.org/packages/qbbr/entity-hidden-type-bundle)
[![License](https://poser.pugx.org/qbbr/entity-hidden-type-bundle/license)](https://packagist.org/packages/qbbr/entity-hidden-type-bundle)

## Installation

### Step 1: Download the Bundle

#### Symfony >= 2.8

```bash
$ composer require qbbr/entity-hidden-type-bundle
```

#### Symfony < 2.8

```bash
$ composer require qbbr/entity-hidden-type-bundle 1.*
```

### Step 2: Enable the Bundle

```php
add('parent', EntityHiddenType::class, [
'class' => 'AppBundle\Entity\MyEntity',
]);
}

// for < 2.8 use getName()
public function getBlockPrefix()
{
return 'my';
}
}
```