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
- Host: GitHub
- URL: https://github.com/qbbr/entityhiddentypebundle
- Owner: qbbr
- Created: 2015-11-10T04:55:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-14T15:20:29.000Z (over 2 years ago)
- Last Synced: 2024-03-14T18:18:34.791Z (over 2 years ago)
- Topics: doctrine-orm, formtype, php, symfony
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EntityHiddenTypeBundle
[](https://packagist.org/packages/qbbr/entity-hidden-type-bundle)
[](https://packagist.org/packages/qbbr/entity-hidden-type-bundle)
[](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';
}
}
```