Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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,
        ));


3.8k