Doctrine\ORM\Query\Parser::CollectionValuedPathExpression PHP Метод

CollectionValuedPathExpression() публичный Метод

CollectionValuedPathExpression ::= IdentificationVariable "." CollectionValuedAssociationField
public CollectionValuedPathExpression ( ) : Doctrine\ORM\Query\AST\PathExpression
Результат Doctrine\ORM\Query\AST\PathExpression
    public function CollectionValuedPathExpression()
    {
        return $this->PathExpression(AST\PathExpression::TYPE_COLLECTION_VALUED_ASSOCIATION);
    }

Usage Example

Пример #1
0
 /**
  * @override
  */
 public function parse(\Doctrine\ORM\Query\Parser $parser)
 {
     $lexer = $parser->getLexer();
     $parser->match(Lexer::T_SIZE);
     $parser->match(Lexer::T_OPEN_PARENTHESIS);
     $this->collectionPathExpression = $parser->CollectionValuedPathExpression();
     $parser->match(Lexer::T_CLOSE_PARENTHESIS);
 }
Parser