foreign-key relationship with Doctrine concrete inheritance
问题 In my schema, I have a generic table Animal and an inherited table Dog . Before using doctrine, I used to implement this pattern with an inherited id referencing the generic id as foreign key. I can't reproduce the same with Doctrine, and I feel like something is missing. The schema I used to produce is the following : CREATE TABLE `animal` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `color` VARCHAR(20) NOT NULL, PRIMARY KEY (`id`) ); CREATE TABLE `dog` ( `id` INT UNSIGNED NOT NULL, `breed`