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

Deprecate ModelManagerInterface collection-related methods #6312

Merged

Conversation

VincentLanglet
Copy link
Member

Subject

I am targeting this branch, because BC.

Closes #6024.

Changelog

### Deprecated
- Deprecated `Sonata\AdminBundle\Model\ModelManagerInterface` collection-related methods.

@VincentLanglet VincentLanglet force-pushed the deprecationCollection branch 2 times, most recently from 13fc225 to 4f564f4 Compare August 23, 2020 12:11
@@ -45,27 +57,30 @@ public static function getSubscribedEvents()
public function onBind(FormEvent $event)
{
$collection = $event->getForm()->getData();
\assert(null === $collection || $collection instanceof Collection);
Copy link
Member Author

Choose a reason for hiding this comment

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

I added null === $collection or phpstan report a useless if (!$collection) {.

But I dont know if this case is possible.

@VincentLanglet VincentLanglet requested a review from a team August 23, 2020 12:14
@phansys phansys added the minor label Aug 23, 2020
phansys
phansys previously approved these changes Aug 23, 2020
UPGRADE-3.x.md Outdated Show resolved Hide resolved
@VincentLanglet VincentLanglet merged commit 243f272 into sonata-project:3.x Aug 24, 2020
franmomu added a commit to franmomu/SonataDoctrineMongoDBAdminBundle that referenced this pull request Sep 10, 2020
These methods were deprecated in the interface in sonata-project/SonataAdminBundle#6312 and released in 3.75
franmomu added a commit to franmomu/SonataDoctrineMongoDBAdminBundle that referenced this pull request Sep 10, 2020
These methods were deprecated in the interface in sonata-project/SonataAdminBundle#6312 and released in 3.75
franmomu added a commit to franmomu/SonataDoctrineMongoDBAdminBundle that referenced this pull request Sep 12, 2020
These methods were deprecated in the interface in sonata-project/SonataAdminBundle#6312 and released in 3.75
franmomu added a commit to franmomu/SonataDoctrineMongoDBAdminBundle that referenced this pull request Sep 12, 2020
These methods were deprecated in the interface in sonata-project/SonataAdminBundle#6312 and released in 3.75
franmomu added a commit to franmomu/SonataDoctrineMongoDBAdminBundle that referenced this pull request Sep 12, 2020
These methods were deprecated in the interface in sonata-project/SonataAdminBundle#6312 and released in 3.75
greg0ire pushed a commit to sonata-project/SonataDoctrineMongoDBAdminBundle that referenced this pull request Sep 12, 2020
These methods were deprecated in the interface in sonata-project/SonataAdminBundle#6312 and released in 3.75
@VincentLanglet VincentLanglet deleted the deprecationCollection branch March 27, 2021 22:14
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.

[Next_Major] Deprecate the collection method of the ModelManager
3 participants