Comments (3)
I think there is a clue as to why this is happening. I don't use doctrine mapping to manage my data. So it must be messing up the migration generation.
On the other hand, I think it should be fixed so that the migration generation only creates the bundle requirement without considering the rest of the db.
from jwtrefreshtokenbundle.
You should add the tables that you aren't using Doctrine to manage the mapping/schema for to your migrations configuration so that the Migrations library ignores them (see https://symfony.com/bundles/DoctrineMigrationsBundle/current/index.html#manual-tables for more on that). Otherwise, any time you run the doctrine:migrations:diff
command, you're going to have the same type of issue.
None of the doctrine
commands are coming from this bundle, and if it tried to do anything to manipulate them, it would just break other parts of your app.
from jwtrefreshtokenbundle.
I had the same problem and I changed the RefreshToken entity to the following which solved the problem:
use Doctrine\ORM\Mapping as ORM;
use Gesdinet\JWTRefreshTokenBundle\Entity\RefreshToken as BaseRefreshToken;
use Gesdinet\JWTRefreshTokenBundle\Entity\RefreshTokenRepository;
#[ORM\Entity(repositoryClass: RefreshTokenRepository::class)]
or
#[ORM\Entity]
#[ORM\Table(name: 'refresh_token')]
class RefreshToken extends BaseRefreshToken
{
}
Doctrine does not handle Attributes and Annotations used together in one project.
You can use the repository class or the second one, both works in my case
from jwtrefreshtokenbundle.
Related Issues (20)
- "message":"Repository mapped for \"App\\Entity\\JwtRefreshToken\" should implement Gesdinet\\JWTRefreshTokenBundle\\Doctrine\\RefreshTokenRepositoryInterface." HOT 2
- Compatibility bug with Symfony 6.1 & ApiPlatform 3.0 HOT 6
- [RFC] 2.0 Proposal HOT 5
- File mapping drivers must have a valid directory path HOT 1
- 401 - Invalid Credentials HOT 1
- Deprecation warnings with Symfony 5.4 and PHP 8.1 HOT 2
- Logout listener HOT 2
- symfony 6.2: Unable to find the controller HOT 1
- Deprecation on "Request/Extractor/RequestBodyExtractor.php::getRefreshToken": "$request->getContentType() method is deprecated"
- Setting cookie same_site with env variable not possible HOT 3
- Update from v1.1.1 to v1.1.3 leads to wrong sequence names HOT 2
- Support for partitioned authentication cookies
- Fatal error on latest version with Symfony 7 HOT 1
- Best way to re-map RefreshToken? HOT 3
- OpenApi platform docs Response missing HOT 3
- Add data as payload to the refresh route HOT 2
- Unable to find the controller for path \"/api/token/refresh\". The route is wrongly configured. HOT 2
- Missing YAML logout documentation
- Unrecognized option "anonymous" under "security.firewalls.refresh"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jwtrefreshtokenbundle.