/**
  * Create new related QubitNote
  *
  * @param integer $userId     QubitUser id
  * @param string  $note       Note text
  * @param integer $noteTypeId Type of note (QubitTerm pk)
  */
 public function setRepositoryNote($userId, $note, $noteTypeId)
 {
     $newNote = new QubitNote();
     $newNote->setObjectId($this->id);
     $newNote->setScope('QubitRepository');
     $newNote->setUserId($userId);
     $newNote->setContent($note);
     $newNote->setTypeId($noteTypeId);
     $newNote->save();
 }
 public function importEadNote(array $options = array())
 {
     $newNote = new QubitNote();
     $newNote->setScope('QubitInformationObject');
     if (isset($options['userId'])) {
         $newNote->setUserId($options['userId']);
     }
     if (isset($options['note'])) {
         $newNote->setContent($options['note']);
     }
     if (isset($options['noteTypeId'])) {
         $newNote->setTypeId($options['noteTypeId']);
     }
     $this->notes[] = $newNote;
 }