Doctrine abstract with entities with same column names

时间:2017-08-30 20:18:46

标签: mysql symfony doctrine-orm doctrine

I have a symfony project that uses doctrine and I am going insane. I have an abstract entity called hardware and then I have hub entity and computer entity that extends hardware.

My issue is that they all have barcode and partnumber columns. I started with just hub and computer but then I realized that I am duplicating so I have an abstract hardware entity as a base class.

I am trying to get the hub barcode and partnumber in the view but I have xdebug and I can see that the hub entity does not have a value for either column.

To see if I am looking in the wrong place I added a partnumber and barcode in the db for hub and computer (and even hardware) but it still stays blank.

Any help?

0 个答案:

没有答案