Last active
February 28, 2016 19:48
-
-
Save andevsoftware/9adb6ccc3f93cb78f57c to your computer and use it in GitHub Desktop.
Phalcon REST - Using parsed Query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** @var \PhalconRest\Data\Query $query */ | |
$query = $this->get(AppServices::QUERY); | |
/** @var \PhalconRest\Data\Query\Parser\Phql $phqlQueryParser */ | |
$phqlQueryParser = $this->get(AppServices::PHQL_QUERY_PARSER); | |
/** @var \Phalcon\Mvc\Model\Query\Builder $phqlBuilder */ | |
$phqlBuilder = $phqlQueryParser->fromQuery($query); | |
// Resultset | |
$results = $phqlBuilder->getQuery()->execute(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment