public function executeGetSchemaPropertyList() { $schemaId = $this->getRequestParameter('selectedSchemaId'); $schemapropId = sfContext::getInstance()->getUser()->getAttribute('schemaprop')->getId(); $results = SchemaPropertyPeer::getSchemaPropertysByVocabID($schemaId, $schemapropId); foreach ($results as $myCschemaprop) { $options[$myCschemaprop->getId()] = $myCschemaprop->getPrefLabel(); } if (!isset($options)) { $options[''] = 'There are no related schemaprops to select'; } $this->schemaprops = $options; }