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 call to unknown method #757

Merged
merged 1 commit into from
Oct 29, 2021

Conversation

core23
Copy link
Member

@core23 core23 commented Oct 28, 2021

Subject

We don't need this call, as the admin is set via https://github.com/sonata-project/SonataAdminBundle/blob/ab9f4e0771e303628d0ea3fe99b0b56cb7b07895/src/Admin/AbstractAdmin.php#L1824

Changelog

### Fixed
- Removed call to unknown `FormMapper::getAdmin` method 

@core23 core23 added the major label Oct 28, 2021
@core23 core23 requested a review from a team October 28, 2021 20:10
phansys
phansys previously approved these changes Oct 28, 2021
@@ -57,7 +57,6 @@ final protected function getFormAdminType(FormMapper $formMapper, AdminInterface

$fieldDescription = $admin->createFieldDescription($field, $adminOptions);
$fieldDescription->setAssociationAdmin($admin);
$fieldDescription->setAdmin($formMapper->getAdmin());
Copy link
Member

Choose a reason for hiding this comment

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

Can the FormMapper namespace be changed to the BlockBundle one ?

@jordisala1991 jordisala1991 merged commit b3b8882 into sonata-project:4.x Oct 29, 2021
@core23 core23 deleted the block-entity-type branch October 29, 2021 08:06
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.

None yet

4 participants