2017 © Pedro Peláez
 

symfony-bundle entity-hidden-type-bundle

Symfony 2 entity hidden form type

image

qbbr/entity-hidden-type-bundle

Symfony 2 entity hidden form type

  • Wednesday, January 24, 2018
  • by qbbr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3,839 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 10 % Grown

The README.md

EntityHiddenTypeBundle

Latest Stable Version Total Downloads License, (*1)

Installation

Step 1: Download the Bundle

Symfony >= 2.8

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

Symfony < 2.8

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

Step 2: Enable the Bundle

<?php
// app/AppKernel.php

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

            new Qbbr\EntityHiddenTypeBundle\EntityHiddenTypeBundle(),
        );

        // ...
    }

    // ...
}

Usage

<?php
// src/AppBundle/Form/Type/MyType.php
namespace AppBundle\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
// for Symfony < 2.8 rm use type
use Qbbr\EntityHiddenTypeBundle\Form\Type\EntityHiddenType;

class MyType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            // for < 2.8 use 'entity_hidden'
            ->add('parent', EntityHiddenType::class, [
                'class' => 'AppBundle\Entity\MyEntity',
            ]);
    }

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

The Versions

24/01 2018

dev-master

9999999-dev https://github.com/qbbr/EntityHiddenTypeBundle

Symfony 2 entity hidden form type

  Sources   Download

MIT

The Requires

 

form entity symfony type hidden qbbr

24/01 2018

2.0.3

2.0.3.0 https://github.com/qbbr/EntityHiddenTypeBundle

Symfony 2 entity hidden form type

  Sources   Download

MIT

The Requires

 

form entity symfony type hidden qbbr

12/03 2016

2.0.2

2.0.2.0 https://github.com/qbbr/EntityHiddenTypeBundle

Symfony 2 entity hidden form type

  Sources   Download

MIT

The Requires

 

form entity symfony type hidden qbbr

11/03 2016

2.0.1

2.0.1.0 https://github.com/qbbr/EntityHiddenTypeBundle

Symfony 2 entity hidden form type

  Sources   Download

MIT

The Requires

 

form entity symfony type hidden qbbr

01/12 2015

2.0.0

2.0.0.0 https://github.com/Qbbr/EntityHiddenTypeBundle/

Symfony 2 entity hidden form type

  Sources   Download

MIT

The Requires

 

form entity symfony type hidden

10/11 2015

1.0.0

1.0.0.0 https://github.com/Qbbr/EntityHiddenTypeBundle/

Symfony 2 entity hidden form type

  Sources   Download

MIT

The Requires

 

form entity symfony type hidden