Hi, I am beginner in Phalcon and i have a problem with model resultset, how i can force a return relations objects of my model without manual access of sub models? Example:
$myModel = Robots::findFirstById(10); $myModel->robotsParts->Parts->name; //I cannot do this;
If i return this model to jsonencode i don't receive a $myModel->robotsParts->Parts without a above access of object! I can configure to ResultSet for return all sub relations in a simple jsonencode(Robots::findFirstById(10)) ? How i can resolve this problem with a better way?