symfony2admingenerator/AdmingeneratorGeneratorBundle — pull request #653 by auss (2013-08-29 12:53:16+00:00)
Title: Fixed preg_match

Another quick fix for #650.

We should be sure that the checked option ends with Type.
Without that such configuration in *-generator.yml:
```yml
page:
label: ""
formType: \NS\AdminBundle\Form\Type\BasePage\EditType
addFormOptions:
data_class: NS\CMSBundle\Model\Page\TeaTypePage
```
will generate such code:
```php
$formOptions = $this->getFormOption('page', new required' => false, 'data_class' => 'NS\CMSBundle\Model\Page\TeaType());
```
and of course fatal error.