Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove exception when multi_field type is used #197

Conversation

craigmarvelley
Copy link
Contributor

Hello,

When the nested object functionality was recently merged, Transformer/ModelToElasticaAutoTransformer.php's behaviour was changed to throw an exception if the field type is multi_field.

Multi-field mapping seemed to be working for me, so I'm not sure why this was necessary? It's quite possible I'm missing something, but if the functionality is missing, surely it's better to not do anything at all? Based on that opinion, I've removed the Exception.

Cheers,
Craig

@fran6co
Copy link
Contributor

fran6co commented Nov 30, 2012

+1 to this, it was working fine before the commit 62b28a8.

richardmiller-zz added a commit that referenced this pull request Nov 30, 2012
Remove exception when multi_field type is used
@richardmiller-zz richardmiller-zz merged commit 04ddfcc into FriendsOfSymfony:master Nov 30, 2012
@richardmiller-zz
Copy link
Contributor

Thanks, if it works fine as is then there is no need for this exception. Anyone needing custom transformations can still implement them.

makasim added a commit to formapro-forks/FOSElasticaBundle that referenced this pull request Jul 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants