I'm sure you can use the query builder for simple joins, for example:
<?php
$robots = $this->modelsManager->createBuilder()
->from('Robots')
->join('RobotsParts')
->orderBy('Robots.name')
->getQuery()
->execute();
$robots = $this->modelsManager->createBuilder()
->from('Robots')
->join('RobotsParts')
->orderBy('Robots.name')
->getQuery()
->getSingleResult();
Or a PHQL example from the documentation:
<?php
$phql = "SELECT Robots.*
FROM Robots JOIN RobotsParts p
ORDER BY Robots.name LIMIT 20";
$result = $manager->executeQuery($phql);
The default is INNER JOIN. However, you can specify the JOIN type in the request.
Link: http://docs.phalconphp.com/en/latest/reference/phql.html#creating-queries-using-the-query-builder
findFirst() , .