Hello
I am developing a miniframework, for my projects, and have to create more knowledge about object orientation in PHP
I have created a MODEL where it does a lot of everything, and my classes extend this MODEL .... So far everything is working, insert, update, delete, findAll, findAllByPk, FindAllByAttributes etc.
But what I wanted to do now are the relationships between classes. Ex: I have a Product and a Category class, where every product has a category.
At the time of showing this in the view, I wanted to call it like this:
$ Product-> Category-> attribute_category
But until now I'm unsuccessful, I thank anyone who can help me (give me a try).