public function addAetUserToSearchIndex($index, User $aetUser)
 {
     // Create a new document
     $document = new Document();
     $document->addField(Field::keyword('dbId', $aetUser->getId(), 'utf-8'));
     $document->addField(Field::unStored('firstname', $aetUser->getFirstname(), 'utf-8'));
     $document->addField(Field::unStored('lastname', $aetUser->getLastname(), 'utf-8'));
     $document->addField(Field::unStored('activiteprincipale', $aetUser->getActivitePrincipale(), 'utf-8'));
     $document->addField(Field::unStored('codepostal', $aetUser->getCodePostale(), 'utf-8'));
     $document->addField(Field::unStored('email', $aetUser->getEmail(), 'utf-8'));
     $document->addField(Field::unStored('matricule', $aetUser->getMatricule(), 'utf-8'));
     $document->addField(Field::unStored('pays', $aetUser->getPays(), 'utf-8'));
     $document->addField(Field::unStored('promotion', strval($aetUser->getPromotion()->format("Y")), 'utf-8'));
     $document->addField(Field::unStored('telephone', strval($aetUser->getTelephone()), 'utf-8'));
     $document->addField(Field::unStored('ville', $aetUser->getVille(), 'utf-8'));
     $document->addField(Field::unStored('whoami', $aetUser->getWhoami(), 'utf-8'));
     // Add your document to the index
     $index->addDocument($document);
     // Commit your change
     $index->commit();
     $index->optimize();
 }
 /**
  * {@inheritDoc}
  */
 public function __toString()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, '__toString', array());
     return parent::__toString();
 }