Created
December 6, 2012 07:29
-
-
Save marfillaster/4222502 to your computer and use it in GitHub Desktop.
option override
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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