title: Fatal Error: Magento Add Column to Admin Customer Grid
body: <p>I wanted to add a column to Admin Customer Grid <strong>is_onHold</strong> (there is column in customer_entity table named <strong>is_onHold</strong>, tinyint(1) {want to store boolean value}).</p>
  
  <p>I tried <a href="https://stackoverflow.com/users/517154/fabrizio-d">Fabrizio d</a> solution  from : <a href="https://stackoverflow.com/questions/6046836/magento-add-column-to-customer-grid/8118892#8118892">Magento - Add column to customer grid</a>, but, it's giving fatal error when trying to filter result based on the column added. </p>
  
  <p>I added following code in <strong>_prepareColumns()</strong>:</p>
  
  <pre><code>$this-&gt;addColumn('is_onHold', array(
              'header'    =&gt; Mage::helper('customer')-&gt;__('On Hold?'),
              'width'     =&gt; '150',
              'index'     =&gt; 'is_onHold',
              'type'      =&gt; 'options',
              'options'   =&gt; array(
                1 =&gt; 'Yes',
                0 =&gt; 'No',
            )
          ));
  </code></pre>
  
  <p>and following code in <strong>_prepareCollection()</strong>:</p>
  
  <pre><code>-&gt;addAttributeToSelect('is_onHold')
  </code></pre>
  
  <p>It works perfectly, and column is added to the grid, but, when I try to filter the record based on newly added column, I get error
  <img src="https://i.stack.imgur.com/e5DOR.png" alt="Mage EAV Error"></p>
  
  <p>when I checked the corresponding error report, it says:</p>
  
  <pre><code>a:5:{i:0;s:34:"Invalid attribute name: is_onHold.";i:1;s:5418:"#0 E:\wamp\www\magePrj\app\code\core\Mage\Eav\Model\Entity\Collection\Abstract.php(1166): Mage::exception('Mage_Eav', 'Invalid attribu...')
  1 E:\wamp\www\magePrj\app\code\core\Mage\Eav\Model\Entity\Collection\Abstract.php(1255): Mage_Eav_Model_Entity_Collection_Abstract-&gt;_addAttributeJoin('is_onHold', 'inner')
  2 E:\wamp\www\magePrj\app\code\core\Mage\Eav\Model\Entity\Collection\Abstract.php(292): Mage_Eav_Model_Entity_Collection_Abstract-&gt;_getAttributeConditionSql('is_onHold', Array, 'inner')
  3 E:\wamp\www\magePrj\app\code\core\Mage\Eav\Model\Entity\Collection\Abstract.php(312): Mage_Eav_Model_Entity_Collection_Abstract-&gt;addAttributeToFilter('is_onHold', Array)
  4 E:\wamp\www\magePrj\app\code\core\Mage\Adminhtml\Block\Widget\Grid.php(449): Mage_Eav_Model_Entity_Collection_Abstract-&gt;addFieldToFilter('is_onHold', Array)
  </code></pre>
  
  <p>Is this because I am trying to use type options for a boolean column?
  I am not sure what I am doing wrong...</p>