Inheritance: extends Doctrine\OrientDB\Query\Command
Example #1
0
 /**
  * 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);
 }
Example #2
0
 /**
  * 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"));
 }
Example #3
0
 /**
  * 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"));
 }