Code Monkey home page Code Monkey logo

Comments (3)

Anna-AP avatar Anna-AP commented on September 23, 2024 1

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.

mbabker avatar mbabker commented on September 23, 2024

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.

patrickschreibing avatar patrickschreibing commented on September 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.