We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, any manager implemented in this bundle calls flush(), ie. Manager/Doctrine/AccessTokenManager.php:35
It would be better to flush only one created entity.
Example from \Trikoder\Bundle\OAuth2Bundle\Manager\Doctrine\AccessTokenManager
Instead of:
public function save(AccessToken $accessToken): void { $this->entityManager->persist($accessToken); $this->entityManager->flush(); }
use
public function save(AccessToken $accessToken): void { $this->entityManager->persist($accessToken); $this->entityManager->flush($accessToken); }
The text was updated successfully, but these errors were encountered:
The behavior of flushing only one entity to the database via the flush method was deprecated a couple of years ago and was removed for Doctrine 3.0.
flush
https://github.com/doctrine/orm/blob/master/UPGRADE.md#bc-break-removed-entitymanagerflushentity-and-entitymanagerflushentities
doctrine/orm#6118
Sorry, something went wrong.
No branches or pull requests
Currently, any manager implemented in this bundle calls flush(), ie. Manager/Doctrine/AccessTokenManager.php:35
It would be better to flush only one created entity.
Example from \Trikoder\Bundle\OAuth2Bundle\Manager\Doctrine\AccessTokenManager
Instead of:
use
The text was updated successfully, but these errors were encountered: