Exemple #1
0
 /**
  * Override to handle the set read-only latestActivityDateTime attribute on the import scenario.
  * (non-PHPdoc)
  * @see RedBeanModel::isAllowedToSetReadOnlyAttribute()
  */
 public function isAllowedToSetReadOnlyAttribute($attributeName)
 {
     if ($this->getScenario() == 'importModel' || $this->getScenario() == 'searchModel') {
         if ($attributeName == 'latestActivityDateTime') {
             return true;
         } else {
             return parent::isAllowedToSetReadOnlyAttribute($attributeName);
         }
     }
 }