2009-01-19 21:40:12 +03:00
|
|
|
<?php
|
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
namespace Doctrine\ORM\Query\AST;
|
|
|
|
|
2009-01-19 21:40:12 +03:00
|
|
|
/**
|
2009-05-26 15:30:07 +04:00
|
|
|
* JoinAssociationPathExpression ::= JoinCollectionValuedPathExpression | JoinSingleValuedAssociationPathExpression
|
|
|
|
* JoinCollectionValuedPathExpression ::= IdentificationVariable "." CollectionValuedAssociationField
|
|
|
|
* JoinSingleValuedAssociationPathExpression ::= IdentificationVariable "." SingleValuedAssociationField
|
2009-01-19 21:40:12 +03:00
|
|
|
*
|
|
|
|
* @author robo
|
2009-03-21 15:49:58 +03:00
|
|
|
* @todo Rename: JoinAssociationPathExpression
|
2009-01-19 21:40:12 +03:00
|
|
|
*/
|
2009-01-22 22:38:10 +03:00
|
|
|
class JoinPathExpression extends Node
|
2009-01-19 21:40:12 +03:00
|
|
|
{
|
|
|
|
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;
|
|
|
|
}
|
2009-03-23 20:39:33 +03:00
|
|
|
|
|
|
|
public function dispatch($sqlWalker)
|
|
|
|
{
|
|
|
|
return $sqlWalker->walkJoinPathExpression($this);
|
|
|
|
}
|
2009-02-20 08:46:20 +03:00
|
|
|
}
|