How can I set the type of JOIN (ex. left or right)?
$result = $this->modelsManager->query("SELECT * FROM Robots LEFT JOIN RobotsParts");
Got "Fatal error: Call to undefined method Phalcon\Mvc\Model\Manager::query()"
Sorry, it must be:
$result = $this->modelsManager->executeQuery("SELECT * FROM Robots LEFT JOIN RobotsParts");
https://docs.phalcon.io/en/1.0.0/reference/phql.html#joins https://docs.phalcon.io/en/1.0.0/reference/phql.html#creating-queries-using-the-query-builder