add data type guesser #45

Merged
merged 1 commit into from Mar 25, 2013

Projects

None yet

2 participants

@docteurklein
Member

Use form data to guess which field type should be used.

@docteurklein docteurklein add data type guesser
add more data type guesses

use form events to create the default forms

revert routing naming changes
b22672c
@dbu dbu referenced this pull request in sonata-project/SonataDoctrinePhpcrAdminBundle Mar 8, 2013
Closed

seamless associative array editing #92

@docteurklein docteurklein merged commit f456fba into develop Mar 25, 2013

1 check passed

default The Travis build passed
Details
@docteurklein docteurklein deleted the feature/data-type-guesser branch Mar 25, 2013
Contributor
defrag commented Mar 31, 2013

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.

Member

ok, i'll fix that. thanks!

Member

@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).

Contributor
defrag commented Apr 11, 2013

@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.

Member

ok. I'll look what's happening.

Member

fixed.

Member

@defrag can you verifiy that this commit bc1de6a fixes you problem ? thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment