Example #1
0
 /**
  * Add a definition
  *
  * @param Definition $definition
  */
 public function addDefinition(Definition $definition)
 {
     $attribute = $definition->getAttribute();
     $key = $definition->getKey();
     $this->mongoIndex[$key] = $attribute;
     $this->definitions[$attribute] = $definition;
 }