38 lines
1.0 KiB
PHP
38 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace Doctrine\ORM\Query\AST;
|
|
|
|
/**
|
|
* JoinAssociationPathExpression ::= JoinCollectionValuedPathExpression | JoinSingleValuedAssociationPathExpression
|
|
* JoinCollectionValuedPathExpression ::= IdentificationVariable "." CollectionValuedAssociationField
|
|
* JoinSingleValuedAssociationPathExpression ::= IdentificationVariable "." SingleValuedAssociationField
|
|
*
|
|
* @author robo
|
|
* @todo Rename: JoinAssociationPathExpression
|
|
*/
|
|
class JoinPathExpression extends Node
|
|
{
|
|
private $_identificationVariable;
|
|
private $_assocField;
|
|
|
|
public function __construct($identificationVariable, $assocField)
|
|
{
|
|
$this->_identificationVariable = $identificationVariable;
|
|
$this->_assocField = $assocField;
|
|
}
|
|
|
|
public function getIdentificationVariable()
|
|
{
|
|
return $this->_identificationVariable;
|
|
}
|
|
|
|
public function getAssociationField()
|
|
{
|
|
return $this->_assocField;
|
|
}
|
|
|
|
public function dispatch($sqlWalker)
|
|
{
|
|
return $sqlWalker->walkJoinPathExpression($this);
|
|
}
|
|
} |