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

Support labels for "repeated" field groups #55

Merged
merged 1 commit into from
Jul 25, 2012

Conversation

bvleur
Copy link
Contributor

@bvleur bvleur commented Jul 17, 2012

The FormExtractor should support standard Symfony functionality as the "repeated" field group.

This has been suggested before (in e.g. PR #19) but rejected because it's only cleanly supportable in Symfony 2.1, whiich is now nearing completion.

The code is getting a little ugly and I could rewrite it into a switch statement if you think that's right.

@schmittjoh
Copy link
Owner

Could you add a test?

@bvleur
Copy link
Contributor Author

bvleur commented Jul 18, 2012

I think I can (I've modified the test code) but I don't know how to run tests for this bundle.

How should I set up my environment? I do have phpunit and my fork in the vendors folder of some Symfony2 project, but when I run phpunit in that vendors folder I get:

PHPUnit 3.6.11 by Sebastian Bergmann.

Cannot open file "/Users/bram/1vl/projects/symfony2-dev/vendor/jms/translation-bundle/./../../../../app/autoload.php".

(sorry, I'm quite new to the symfony2 + composer + phpunit world :))

UPDATE 2012-07-24: figured it out. added tests in same commit (and updated my author name and email). Sorry for the messy process.

@acasademont
Copy link
Contributor

+1 on this one :)

@schmittjoh schmittjoh merged commit e83dbb9 into schmittjoh:master Jul 25, 2012
@schmittjoh
Copy link
Owner

Thanks, merged!

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