/**
  * Override to cast booleans properly
  */
 public function setAttributes($values, $safeOnly = true)
 {
     parent::setAttributes($values, $safeOnly);
     $this->updateLatestActivityDateTimeWhenATaskIsCompleted = (bool) $this->updateLatestActivityDateTimeWhenATaskIsCompleted;
     $this->updateLatestActivityDateTimeWhenANoteIsCreated = (bool) $this->updateLatestActivityDateTimeWhenANoteIsCreated;
     $this->updateLatestActivityDateTimeWhenAnEmailIsSentOrArchived = (bool) $this->updateLatestActivityDateTimeWhenAnEmailIsSentOrArchived;
     $this->updateLatestActivityDateTimeWhenAMeetingIsInThePast = (bool) $this->updateLatestActivityDateTimeWhenAMeetingIsInThePast;
 }
 /**
  * Override to casting automaticProbabilityMappingDisabled to integer
  */
 public function setAttributes($values, $safeOnly = true)
 {
     parent::setAttributes($values, $safeOnly);
     $this->automaticProbabilityMappingDisabled = (int) $this->automaticProbabilityMappingDisabled;
 }
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('convertToAccountSetting' => Zurmo::t('LeadsModule', 'LeadsModuleSingularLabel Conversion', LabelUtil::getTranslationParamsForAllModules())));
 }
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('stageToProbabilityMapping' => Zurmo::t('OpportunitiesModule', 'Probability Mapping')));
 }