Skip to content

Instantly share code, notes, and snippets.

@marfillaster
Created December 6, 2012 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marfillaster/4222502 to your computer and use it in GitHub Desktop.
Save marfillaster/4222502 to your computer and use it in GitHub Desktop.
option override
<?php
class BicycleType extends AbstractType
{
public function buildForm($formBuilder)
{
$formBuilder->add('wheels', 'choice', array('choices' => array(1, 2)));
}
}
class Tricycle extends BicycleType
{
public function buildForm($formBuilder)
{
parent::buildForm($formBuilder);
// how to add choices option?
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment