2017 © Pedro Peláez
 

symfony-bundle hidden-entity-bundle

GiBiLogic Hidden Entity Bundle

image

gibilogic/hidden-entity-bundle

GiBiLogic Hidden Entity Bundle

  • Saturday, April 7, 2018
  • by gibilogic
  • Repository
  • 3 Watchers
  • 0 Stars
  • 1,094 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 10 % Grown

The README.md

GiBiLogic HiddenEntityBundle

A small bundle that contains a ready-to-use hidden entity form type for Symfony 2., (*1)

This is basically an hidden form type that's used to store an entity ID; a transformer will manage the ID-to-entity and entity-to-ID conversions by using the ObjectManager of Doctrine ORM., (*2)

Installation

Add this bundle to the composer.json of your application with the console command:, (*3)

composer require gibilogic/hidden-entity-bundle

Or, if you are using composer.phar, use the console command:, (*4)

php composer.phar require gibilogic/hidden-entity-bundle

Usage

Inside one of your form, simply add a new hidden_entity field to the builder:, (*5)

/**
 * {@inheritdoc}
 */
public function buildForm(FormBuilderInterface $builder, array $options)
{
    $builder
        // ..
        ->add('category', 'hidden_entity', array(
            'required' => true,
            'class' => 'AppBundle:Category'
        ))
        // ..
    ;
}

The class options is mandatory and must contain your entity's class name (as shown in the example above)., (*6)

The Versions

07/04 2018

1.1.x-dev

1.1.9999999.9999999-dev http://www.gibilogic.com

GiBiLogic Hidden Entity Bundle

  Sources   Download

MIT

The Requires

 

form entity type hidden

15/10 2015

dev-master

9999999-dev http://www.gibilogic.com

GiBiLogic Hidden Entity Bundle

  Sources   Download

MIT

The Requires

 

form entity type hidden

15/10 2015

1.0.0

1.0.0.0 http://www.gibilogic.com

GiBiLogic Hidden Entity Bundle

  Sources   Download

MIT

The Requires

 

form entity type hidden