B
B
bagos2019-02-27 16:18:18
Yii
bagos, 2019-02-27 16:18:18

How to correctly inherit a class if it itself works according to the single table inheritance scheme?

The project implements the sti
Car
|- SportCar
|- HeavyCar pattern.
I need a new class that inherits, for example, SportCar, and creates a new attribute for itself .. but when a new class is called, instantiate always returns the SportCar class

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question