Hi, I want to know if it is any workaround for this:
I have a class which models a database table behavior (table abstract class)
I have several clases wich extends the table abstract class, providing information about their fields. The name of this classes are the names of the tables on the database. (users, stock, sales, etc)
I want to have a class wich provide additional functionality to each the users, stock, sales, etc, and define it dynamically.
Ex:
class Users extends Table{}
$myParent = 'Users'
class List extends $myParent {}
This actually doesn't work, that's why I'm looking a workaround.
Thank you.
I have a class which models a database table behavior (table abstract class)
I have several clases wich extends the table abstract class, providing information about their fields. The name of this classes are the names of the tables on the database. (users, stock, sales, etc)
I want to have a class wich provide additional functionality to each the users, stock, sales, etc, and define it dynamically.
Ex:
class Users extends Table{}
$myParent = 'Users'
class List extends $myParent {}
This actually doesn't work, that's why I'm looking a workaround.
Thank you.
Comment