Skip to content

Commit

Permalink
fix SonataAdminBundle sonata-project#1099
Browse files Browse the repository at this point in the history
  • Loading branch information
scourgen authored and rande committed Jan 25, 2013
1 parent 582c90a commit e8c752e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Form/Type/ModelReferenceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,24 @@ public function setDefaultOptions(OptionsResolverInterface $resolver)
$resolver->setDefaults(array(
'compound' => false,
'model_manager' => null,
'class' => null
'class' => null,
'parent' => 'text'
));
}

/**
* {@inheritDoc}
*/
public function getParent()
{
return 'text';
}

/**
* {@inheritDoc}
*/
public function getName()
{
return 'sonata_type_model_reference';
}
}
}

0 comments on commit e8c752e

Please sign in to comment.