Exemple #1
0
 /**
  * @usedby sql\template\component\Reference::loadCollection()
  */
 public function setTable(Table $table, $bReset = false)
 {
     $sNamespace = $this->getHandler()->getNamespace('sql');
     $this->setType($this->getHandler()->getType('collection', $sNamespace));
     $this->setNamespace($sNamespace);
     //$this->setNamespace($table->getNamespace(), 'element', false);
     $this->setName('[collection]');
     $this->setQuery($table->getQuery($bReset));
     $this->table = $table;
     $table->setCollection($this);
     //$this->loadNamespace($table->getNamespace());
 }