Tworzę encje np.
class User implements UserInterface { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; public function getId(): ?int { return $this->id; } }
a chcę, aby było tak:
1. tabela z prefixem = ok / zrobione
2. klucz - id_user / standardowo generuje id i nie mogę zmienić na id_user bo się wysypuje
class DbmUsers implements UserInterface { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id_user; public function getIdUser(): ?int { return $this->id_user; } }
Wykonuje migracje: php bin/console make:migration
i wyskakuje błąd: Column name `id` referenced for relation from App\Entity\DbmUsers towards App\Entity\DbmUsersProfile does not exist.
Jak zmienić automatycznie wygenerowane id na id_user?