Mvc\Model\CriteriaInterface

Source on GitHub Methods abstract public setModelName (mixed $modelName) ... abstract public getModelName () ... abstract public bind (array $bindParams) ... abstract public bindTypes (array $bindTypes) ... abstract public where (mixed $conditions) ... abstract public conditions (mixed $conditions) ... abstract public orderBy (mixed $orderColumns) ... abstract public limit (mixed $limit, [mixed $offset]) ... abstract public forUpdate ([mixed $forUpdate]) ... abstract public sharedLock ([mixed $

Mvc\Model\Criteria::where

public where (mixed $conditions, [mixed $bindParams], [mixed $bindTypes]) Sets the conditions parameter in the criteria

Mvc\Model\Criteria::sharedLock

public sharedLock ([mixed $sharedLock]) Adds the “shared_lock” parameter to the criteria

Mvc\Model\Criteria::setModelName

public setModelName (mixed $modelName) Set a model on which the query will be executed

Mvc\Model\Criteria::setDI

public setDI (Phalcon\DiInterface $dependencyInjector) Sets the DependencyInjector container

Mvc\Model\Criteria::rightJoin

public rightJoin (mixed $model, [mixed $conditions], [mixed $alias]) Adds a RIGHT join to the query $criteria->rightJoin('Robots', 'r.id = RobotsParts.robots_id', 'r');

Mvc\Model\Criteria::orWhere

public orWhere (mixed $conditions, [mixed $bindParams], [mixed $bindTypes]) Appends a condition to the current conditions using an OR operator

Mvc\Model\Criteria::orderBy

public orderBy (mixed $orderColumns) Adds the order-by clause to the criteria

Mvc\Model\Criteria::order

public order (mixed $orderColumns) Adds the order-by parameter to the criteria (deprecated)

Mvc\Model\Criteria::notInWhere

public notInWhere (mixed $expr, array $values) Appends a NOT IN condition to the current conditions $criteria->notInWhere('id', [1, 2, 3]);