Example #1
0
 public function store(Datastore $oDB = null)
 {
     if ($oDB == null && $this->datastoreProxy == null) {
         // TODO: throw a better exception here
         throw new Exception();
     }
     if ($this->datastoreProxy == null) {
         $this->datastoreProxy = $oDB->getNewDatastoreProxy($this);
     }
     return $this->datastoreProxy->store($oDB);
 }