Use form data to guess which field type should be used.
add data type guesser
add more data type guesses
use form events to create the default forms
revert routing naming changes
After this was merged the $form = $this->createBoundObjectForm($enity, 'new'); will not use NewEntityType - it will find the matching default object creator first and i will create Form with all entity objects.
ok, i'll fix that. thanks!
@defrag can you explain a bit more what's your problem ?
Even better, can you paste your code somewhere (for me to reproduce the problem).
@docteurklein For example i have NewProposalType. When i create createBoundObjectForm($entity,'new'), it works as expected and uses the NewProposalType. However after updating RadBundle after this merge, whenever i call createBoundObjectForm($entity,'new') i never get NewProposalType. Instead i get detault form with all fields.
ok. I'll look what's happening.
do not add form children dynamically; only on default form creator; r…
@defrag can you verifiy that this commit bc1de6a fixes you problem ? thanks.