<?php

/*
 * This file is part of the Sylius package.
 *
 * (c) Paweł Jędrzejewski
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Sylius\Bundle\TaxonomiesBundle\Form\Type;

use Symfony\Component\Form\AbstractType;

/**
 * Taxonomy entity choice form.
 *
 * @author Paweł Jędrzejewski <pjedrzejewski@diweb.pl>
 */
class TaxonomyEntityChoiceType extends AbstractType
{
    /**
     * {@inheritdoc}
     */
    public function getParent()
    {
        return 'entity';
    }
    
    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'sylius_taxonomy_entity_choice';
    }
}

<?php

/*
 * This file is part of the Sylius package.
 *
 * (c) Paweł Jędrzejewski
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Sylius\Bundle\TaxonomiesBundle\Form\Type;

use Sylius\Bundle\TaxonomiesBundle\Form\Type\TaxonomyChoiceType;

/**
 * Taxonomy entity choice form.
 *
 * @author Paweł Jędrzejewski <pjedrzejewski@diweb.pl>
 */
class TaxonomyEntityChoiceType extends TaxonomyChoiceType
{
    /**
     * {@inheritdoc}
     */
    public function getParent()
    {
        return 'entity';
    }
    
    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'sylius_taxonomy_entity_choice';
    }
}

Extend the right TaxonomyChoiceType class
Extend the right TaxonomyChoiceType class