Mvc\Model\Query\Builder::where

public Phalcon\Mvc\Model\Query\Builder where (mixed $conditions, [array $bindParams], [array $bindTypes]) Sets the query conditions $builder->where(100); $builder->where('name = "Peter"'); $builder->where('name = :name: AND id > :id:', array('name' => 'Peter', 'id' => 100));

Mvc\Model\Query\BuilderInterface::addFrom

abstract public addFrom (mixed $model, [mixed $alias]) ...

Mvc\Model\Query\BuilderInterface::columns

abstract public columns (mixed $columns) ...

Mvc\Model\Query\BuilderInterface

Source on GitHub Constants string OPERATOR_OR string OPERATOR_AND Methods abstract public columns (mixed $columns) ... abstract public getColumns () ... abstract public from (mixed $models) ... abstract public addFrom (mixed $model, [mixed $alias]) ... abstract public getFrom () ... abstract public join (mixed $model, [mixed $conditions], [mixed $alias]) ... abstract public innerJoin (mixed $model, [mixed $conditions], [mixed $alias]) ... abstract public leftJoin (mixed $model, [mixed $cond

Mvc\Model\Query\BuilderInterface::andWhere

abstract public andWhere (mixed $conditions, [mixed $bindParams], [mixed $bindTypes]) ...

Mvc\Model\Query\Builder::OPERATOR_OR

string OPERATOR_OR

Mvc\Model\Query\Builder::orWhere

public Phalcon\Mvc\Model\Query\Builder orWhere (string $conditions, [array $bindParams], [array $bindTypes]) Appends a condition to the current conditions using an OR operator $builder->orWhere('name = "Peter"'); $builder->orWhere('name = :name: AND id > :id:', array('name' => 'Peter', 'id' => 100));

Mvc\Model\Query\Builder::orderBy

public Phalcon\Mvc\Model\Query\Builder orderBy (string | array $orderBy) Sets an ORDER BY condition clause $builder->orderBy('Robots.name'); $builder->orderBy(array('1', 'Robots.name'));

Mvc\Model\Query\Builder::offset

public offset (mixed $offset) Sets an OFFSET clause $builder->offset(30);

Mvc\Model\Query\Builder::rightJoin

public Phalcon\Mvc\Model\Query\Builder rightJoin (string $model, [string $conditions], [string $alias]) Adds a RIGHT join to the query $builder->rightJoin('Robots', 'r.id = RobotsParts.robots_id', 'r');