Created
August 19, 2013 11:59
-
-
Save danslo/6268385 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'app/Mage.php'; | |
Mage::init(); | |
$attributes = Mage::getModel('eav/entity_attribute')->getCollection() | |
->addFieldToFilter('source_model', array('notnull' => true)) | |
->addFieldToFilter('source_model', array('neq' => '')); | |
foreach ($attributes as $attribute) { | |
$model = Mage::getModel($attribute->getSourceModel()); | |
if (!$model) { | |
printf("Attribute '%s' has an invalid source_model\n", $attribute->getAttributeCode()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment