getPurging() public method

Returns whether or not the model will purge attributes before saving.
public getPurging ( ) : boolean
return boolean
Example #1
0
 /**
  * Check if purging is enabled and then purge the attributes
  * that need purging.
  *
  * @param Esensi\Model\Contracts\PurgingModelInterface $model
  * @param string                                       $event name
  */
 protected function performPurging(PurgingModelInterface $model, $event)
 {
     if ($model->getPurging()) {
         $model->purgeAttributes();
     }
 }