We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

CreateBuilder and Paginator QueryBuilder

Hi, How can I bind params :name: in this code? Without executing it.

$builder = $this->modelsManager->createBuilder();
$builder->columns('*');
$builder->addFrom('Modules\Models\Post', 'p');
$builder->andWhere('p.autor = :name:');

$paginator = new \Phalcon\Paginator\Adapter\QueryBuilder(array(
            "builder" => $builder,
            "limit"=> 10,
            "page" => 1,
        ));


7.1k