0
votes
0answers
29 views

Doctrine 2 and Concrete table inheritance

I use Doctrine 2 and I've read some articles on inheritance strategies' mapping with ORM. I've seen three main strategies : "Class table inheritance", "Concrete table inheritance" and "Single table ...
1
vote
1answer
229 views

Class table inheritance… To 'type' or not to 'type'

I currently have a database that uses Class table inheritance model. Three different tables inherit from this table. The child tables have all a FK to the parent table and the fields are properly ...
-3
votes
2answers
814 views

Why don't inherited methods use child properties? (PHP)

I'm trying to get the code below to work in child classes. But it keeps failing because it is checking the basicDbClass rather than the child class. For those complaining and voting my question down ...
3
votes
2answers
242 views

Does Parallel Inheritance Make for Good Code?

I'm writing a database interface in PHP and I have a base dbTables class, as well as a base dbTableFields class. dbTables has a function, getFields(), that instantiates dbTableFields objects, each of ...