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-07-30 08:40:04 +04:00
|
|
|
* JoinAssociationPathExpression ::= IdentificationVariable "." (SingleValuedAssociationField | CollectionValuedAssociationField)
|
2009-01-19 21:40:12 +03:00
|
|
|
*
|
2009-07-30 08:40:04 +04:00
|
|
|
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
|
|
|
|
* @author Roman Borschel
|
2009-01-19 21:40:12 +03:00
|
|
|
*/
|
2009-07-30 08:40:04 +04:00
|
|
|
class JoinAssociationPathExpression 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
|
|
|
}
|