-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
handle SonataAdminBundle Pager::nbresults deprecation #1257
handle SonataAdminBundle Pager::nbresults deprecation #1257
Conversation
@VincentLanglet before I continue: The |
Yes, I think we still keep BC for method with Be careful, your implementation of private $resultsCount;
public function setResultsCount($count) {
$this->resultsCount = $count;
// NEXT_MAJOR: Remove this line.
$this->setNbResults($count, 'sonata_deprecation_mute'); // You need to override this method or make a new PR to sonataAdmin to allow to avoid the deprecation.
}
public function countResults() {
$deprecatedCount = $this->getNbResults('sonata_deprecation_mute'); // You need to override this method or make a new PR to sonataAdmin to allow to avoid the deprecation.
if ($deprecatedCount !== $this->resultsCount) {
// trigger deprecation
return $deprecatedCount;
}
return $this->resultsCount;
} Maybe we can do something like this ? I think it would be good to deprecate And if we're changing
|
I don't follow. Currently I just call Will look into it then with keeping BC. |
My bad, i'm tired, I read
But I just discovered that
|
e4f6877
to
a4d85c8
Compare
1ee0313
to
12a19d3
Compare
64c188c
to
3e49f97
Compare
Once SonataAdminBundle 3.86 was released we need to bump the minimum in composer.json here before we release 3.27 |
Can you bump it in this PR? |
|
3.86 is released :) |
@phansys I merged this, because your suggestion was merged 👍🏻 |
Thank you! |
* Add functional tests (#1242) This adds some functional tests using symfony/panther to test CRUD operations as well as some embedded and many to one mapping. * DevKit updates (#1252) * DevKit updates (#1253) * Set the correct fieldName to get the correct value * Remove tests already made in SonataAdmin These methods are coming from the BaseFieldDescription which is already tested * Add test * Fix param name in doc (#1256) * Fix param name in doc * Fix * Changing access checking in views (isGranted to hasAccess) * handle SonataAdminBundle Pager::nbresults deprecation (#1257) * handle SonataAdminBundle Pager::nbresults deprecation * bump sonata admin version * Avoid Pager deprecation (#1248) * Delete button is independent of the ability to delete an object (#1254) * DevKit updates (#1260) * fixes after merging Co-authored-by: Fran Moreno <[email protected]> Co-authored-by: Sonata CI <[email protected]> Co-authored-by: Vincent Langlet <[email protected]> Co-authored-by: Vincent Langlet <[email protected]> Co-authored-by: Adam <[email protected]>
Subject
I am targeting this branch, because its BC.
Changelog