User model is conected to
Group model, which is connected to
Grade model. I'm trying to find a condition (the
WHERE clause) or criteria (https://docs.phalcon.io/es/latest/api/Phalcon_Mvc_Model_Criteria.html ) to get a string that is like
Grade.name Group.name - User.fullName, and the search starts from the
The problem is that, with the condition, I cannot do anything, 'cause I can't find if it is possible to do something like a
JOIN there (I don't think so); and with the criteria, I don't find how to set the query.
Can anybody illuminate me?