/** * Creates a new statements to manage indexes on the $property of the given * $class. * * @param string $property * @param string $class */ public function __construct($property, $class = null) { parent::__construct(); if ($class) { $this->setToken('IndexClass', $class); } $this->setToken('Property', $property); }
/** * Returns the formatters for this query's tokens. * * @return Array */ protected function getTokenFormatters() { return array_merge(parent::getTokenFormatters(), array('Index' => "Doctrine\\OrientDB\\Query\\Formatter\\Query\\Regular")); }
/** * Returns the formatters for this query's tokens. * * @return Array */ protected function getTokenFormatters() { return array_merge(parent::getTokenFormatters(), array('Name' => "Doctrine\\OrientDB\\Query\\Formatter\\Query\\Regular", 'Key' => "Doctrine\\OrientDB\\Query\\Formatter\\Query\\Regular", 'Value' => "Doctrine\\OrientDB\\Query\\Formatter\\Query\\EmbeddedRid")); }