Esempio n. 1
0
 /**
  * Registry the self instance
  */
 private function registryInstance()
 {
     if (!ORMRegistry::offsetExists("class\\VTRORM\\ORMSettings")) {
         ORMRegistry::setInRef("class\\VTRORM\\ORMSettings", $this);
     }
 }
Esempio n. 2
0
 /**
  * @throws \Exception
  */
 protected function instanceObjects()
 {
     $this->CommonQuery =& ORMRegistry::classGet("VTRORM\\Query\\CommonQuery");
     $this->Select =& ORMRegistry::classGet("VTRORM\\Query\\SelectQuery");
     $this->Update =& ORMRegistry::classGet("VTRORM\\Query\\UpdateQuery");
     $this->Insert =& ORMRegistry::classGet("VTRORM\\Query\\InsertQuery");
     $this->Delete =& ORMRegistry::classGet("VTRORM\\Query\\DeleteQuery");
     //$Table = $this->Schema->getTable();
     if (!empty($this->Alias)) {
         $Table = [$this->Table => $this->Alias];
     } else {
         $Table =& $this->Table;
     }
     $this->setTableIntoHelpers($Table);
 }
Esempio n. 3
0
 /**
  * Registry the self instance
  */
 private function registryInstance()
 {
     if (!ORMRegistry::offsetExists("class\\VTRORM\\Database\\Connection")) {
         ORMRegistry::setInRef("class\\VTRORM\\Database\\Connection", $this);
     }
 }