0
Hello!
I am developing a miniframework, for my projects, and tbm create more knowledge about object orientation in PHP
I created a MODEL where it is a big part of everything, and my classes extend this MODEL.... So far virtually everything is working, update, delete, update, findAll, findAllByPk, Findallbyattributes etc.
But what I wanted to do now is class relations. Ex:I have a class Product and a Category, where every product has a category.
At the time of showing this in the view, I wanted to call as follows:
$Product->Category->attribute_category
but so far I am unsuccessful, I thank anyone who can help me (gives me a north) of how to do this.
Bro I think you were not very happy to finalize the explanation of your text, post an example of what you already have, and what you want, is better to visualize your ideal and help in a solution
– Robson gomes de jesus