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
I am working on a new project in Symfony 5.3. I am using this command bin/console make:entity for creating entities.
This wizard automatically creates an entity with $id as primary key of type integer. I am prefering UUID instead of integer.
How I should change settings to get Entity like example?
namespace App\Entity;
use App\Repository\EventRepository; use Doctrine\ORM\Mapping as ORM; use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
/**
@Orm\Entity(repositoryClass=EventRepository::class) / class Event { /*
... }
The text was updated successfully, but these errors were encountered:
Hey @skocdopolet this is part of the https://github.com/symfony/maker-bundle repository. For customized maker have a look in the docs: https://symfony.com/bundles/SymfonyMakerBundle/current/index.html#overriding-the-generated-code
Sorry, something went wrong.
@weaverryan friendly ping to move this issue, I am currently on a phone and can't do it 🤷🏼♂️😃
Hello, is there please some progress? Thanks
Duplicate of #745 - we'll have PR #1329 merge / released soon!
No branches or pull requests
Description
I am working on a new project in Symfony 5.3. I am using this command bin/console make:entity for creating entities.
This wizard automatically creates an entity with $id as primary key of type integer. I am prefering UUID instead of integer.
How I should change settings to get Entity like example?
Example
namespace App\Entity;
use App\Repository\EventRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
/**
@Orm\Entity(repositoryClass=EventRepository::class)
/
class Event
{
/*
*/
private $id;
...
}
The text was updated successfully, but these errors were encountered: