Example #1
0
 /**
  * @return Persister
  */
 public static function get()
 {
     if (!self::$inst) {
         self::$inst = new Persister();
     }
     return self::$inst;
 }
 /**
  * Reload all entities from Registry.
  *
  * @return $this
  */
 public function reload()
 {
     $this->checkPersister();
     foreach ($this as $key => $entity) {
         if (!empty($entity)) {
             $this[$key] = $this->persister->reload($entity);
         }
     }
     return $this;
 }