/**
  * Handle the search scenario for primary
  */
 public function isAllowedToSetReadOnlyAttribute($attributeName)
 {
     if (in_array($attributeName, array('primary'))) {
         return true;
     } else {
         return parent::isAllowedToSetReadOnlyAttribute($attributeName);
     }
 }