There's an attribute which has been assigend to an attribute set and there's a product using that set.
I have successfully created attributes and added them to attribute sets. However, when I create a new product, those attributes aren't visible in the backend. Also, I can set and retrieve data programmatically, but I cannot see the attributes in the backend.
I have cleared all caches and reindexed everything
EDIT This is what I'm doing at the moment to create the attribute
/* @var $attributeModel Mage_Catalog_Model_Entity_Attribute */
$attributeModel = Mage::getModel('catalog/resource_eav_attribute');
$attributeModel->setEntityTypeId($entityTypeId);
$attributeModel->setAttributeCode($propName);
$attributeModel->setBackendType('varchar');
$attributeModel->setName($propName);
$attributeModel->setFrontendLabel($propDesc);
$attributeModel->save();