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

Bugfix/fix for sf3 incompatibel formtype properties #67

Conversation

nwaelkens
Copy link

@nwaelkens nwaelkens commented Nov 9, 2017

Q A
Bug fix? yes
New feature? no
BC breaks? yes, with Symfony 2.7
Deprecations? no
License MIT

What's in this PR?

Some used options for two formfield types were not compatible with symphony 3. There are changed.

Details:
CollectionType: type is now entry_type
CollectionType: options is now options_type
These changes break bc with sf2.7.
See: https://symfony.com/doc/current/reference/forms/types/collection.html

EntityType: property is now choice_label
See: https://symfony.com/doc/current/reference/forms/types/entity.html

Added Symfony compatibility requirement in the composer.json: "symfony/symfony": "^2.8.7 || ^3.0",

Why?

UndefinedOptionsException was thrown in SF3.

BC Breaks/Deprecations

Changes break with SF2.7

Nathan Waelkens and others added 3 commits November 8, 2017 15:33
Added Symfony compatibility requirement in the composer.json

Affected file
modified:   composer.json
The used option types were incompatible with Symfony 3.

old -> new
------------
type -> entry_type
options -> options_type
property -> choice_label

Affected files:
modified:   Form/Type/ProfileAddressType.php
modified:   Form/Type/ProfileContactType.php
@alexander-schranz
Copy link
Member

No breaking changes as sulu 1.3 is required which requires atleast 2.8.7 of symfony.

@alexander-schranz alexander-schranz merged commit 1ea6105 into sulu:develop Nov 9, 2017
@alexander-schranz
Copy link
Member

@nwaelkens thank you!

@nwaelkens nwaelkens deleted the bugfix/fix-for-sf3-incompatibel-formtype-properties branch November 9, 2017 10:13
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.

2 participants