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 deprecations constructing FieldDescription #459

Merged

Conversation

franmomu
Copy link
Member

@franmomu franmomu commented Nov 4, 2020

Subject

In sonata-project/admin-bundle 3.78 a deprecation was added to force to construct FieldDescription with name and options.

I am targeting this branch, because these changes are BC.

Changelog

### Fixed
- Fixed deprecation constructing `FieldDescription` without arguments.

@franmomu franmomu added the patch label Nov 4, 2020
phansys
phansys previously approved these changes Nov 5, 2020
@@ -125,7 +125,7 @@ public function getNewFieldDescriptionInstance($class, $name, array $options = [

[$metadata, $propertyName, $parentAssociationMappings] = $this->getParentMetadataForProperty($class, $name);

$fieldDescription = new FieldDescription();
$fieldDescription = new FieldDescription($name, $options);
$fieldDescription->setName($name);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove this line and the next one

In sonata-project/admin-bundle 3.78 a deprecation was added
to force to construct FieldDescription with "name" and "options".
@VincentLanglet VincentLanglet merged commit b864930 into sonata-project:3.x Nov 5, 2020
@VincentLanglet
Copy link
Member

Thanks @franmomu

@franmomu franmomu deleted the deprecations_field_description branch November 5, 2020 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants