enable() public static method

see @ self::disable() just enabled the creation of versioning in the current process
public static enable ( ) : void
return void
Example #1
0
 /**
  * @return mixed
  */
 public function getDuration()
 {
     $duration = $this->getCustomSetting("duration");
     if (!$duration) {
         $duration = $this->getDurationFromBackend();
         if ($duration) {
             $this->setCustomSetting("duration", $duration);
             Model\Version::disable();
             $this->save();
             // auto save
             Model\Version::enable();
         }
     }
     return $duration;
 }