Overview

Namespaces

  • Alchemy
    • core
      • query
      • schema
    • dialect
    • engine
    • orm
    • tests
    • util
      • promise
  • PHP

Classes

  • DataMapper
  • DDL
  • ManyToOne
  • OneToMany
  • OneToOne
  • ORMQuery
  • ORMTable
  • ORMTableRef
  • RelatedSet
  • Relationship
  • Session
  • SessionSelect
  • WorkQueue
  • Overview
  • Namespace
  • Class
  • Tree

Class ORMQuery

Represent an object-relationship-aware SQL query

Alchemy\core\Element implements Alchemy\core\IElement
Extended by Alchemy\core\query\Query implements Alchemy\core\query\IQuery
Extended by Alchemy\orm\ORMQuery
Namespace: Alchemy\orm
Located at alchemy/orm/query/ORMQuery.php
Methods summary
public
# __construct( mixed $type, Alchemy\core\query\TableRef $table )

Overrides

Alchemy\core\query\Query::__construct()
public
# __set( mixed $name, mixed $value )

Overrides

Alchemy\core\query\Query::__set()
public
# join( Table $table, Alchemy\core\query\Predicate $on = null, mixed $direction = null, mixed $type = null )

Add a join to the query

Add a join to the query

Parameters

$table
Table
$table
$on
Alchemy\core\query\Predicate
$on
$direction
mixed
$direction Optional join direction
$type
mixed
$type Optional join type

Overrides

Alchemy\core\query\Query::join()
public
# joins( mixed $args = false )

Overrides

Alchemy\core\query\Query::joins()
public
# where( Alchemy\core\query\Expression $expr = false )

Set the Query's WHERE expression. Calling this multiple times will overwrite the previous expressions. You should instead call this once with a CompoundExpression.

Set the Query's WHERE expression. Calling this multiple times will overwrite the previous expressions. You should instead call this once with a CompoundExpression.

Parameters

$expr
Alchemy\core\query\Expression
$expr

Overrides

Alchemy\core\query\Query::where()
public
# with( )
public
# without( )
Methods inherited from Alchemy\core\query\Query
columns(), limit(), offset(), outerJoin(), parameters(), table()
Methods inherited from Alchemy\core\Element
__callStatic(), __clone(), addTag(), addTags(), copy(), define(), define_alias(), getDescription(), getID(), getTag(), getType(), get_definition(), listTags(), normalize_arg()
Properties summary
protected array $joinedTables array()
#
Properties inherited from Alchemy\core\query\Query
$columns, $joins, $limit, $offset, $table, $where
Properties inherited from Alchemy\core\Element
$id, $tags, $type
API documentation generated by ApiGen 2.8.0