Skip to content

QueryBuilder

  • Full name: \Zemit\Mvc\Model\EagerLoading\QueryBuilder
  • Parent class: Builder
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Constants

Constant Visibility Type Value
E_NOT_ALLOWED_METHOD_CALL public 'When eager loading relations queries must return full entities'

Methods

distinct

public distinct(mixed $distinct): \Phalcon\Mvc\Model\Query\BuilderInterface

Parameters:

Parameter Type Description
$distinct mixed

Throws:


columns

public columns(mixed $columns): \Phalcon\Mvc\Model\Query\BuilderInterface

Parameters:

Parameter Type Description
$columns mixed

Throws:


where

Replacing where to andWhere in order to avoid loosing relationship conditions

public where(string $conditions, array $bindParams = [], array $bindTypes = []): \Phalcon\Mvc\Model\Query\BuilderInterface

Parameters:

Parameter Type Description
$conditions string
$bindParams array
$bindTypes array