public function executeGetConceptList() { $vocabId = $this->getRequestParameter('selectedVocabularyId'); $conceptId = sfContext::getInstance()->getUser()->getAttribute('concept')->getId(); $results = ConceptPeer::getConceptsByVocabID($vocabId, $conceptId); foreach ($results as $myCconcept) { $options[$myCconcept->getId()] = $myCconcept->getPrefLabel(); } if (!isset($options)) { $options[''] = 'There are no related concepts to select'; } $this->concepts = $options; }