/** * Registry the self instance */ private function registryInstance() { if (!ORMRegistry::offsetExists("class\\VTRORM\\ORMSettings")) { ORMRegistry::setInRef("class\\VTRORM\\ORMSettings", $this); } }
/** * @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); }
/** * Registry the self instance */ private function registryInstance() { if (!ORMRegistry::offsetExists("class\\VTRORM\\Database\\Connection")) { ORMRegistry::setInRef("class\\VTRORM\\Database\\Connection", $this); } }