Exemplo n.º 1
0
 /**
  * Creates filtered table representation.
  * @param  string  database table name
  * @param  Connection
  */
 public function __construct($table, Connection $connection)
 {
     $this->connection = $connection;
     $this->context = new QueryContext($table, $connection);
     $this->selectionFactory = $connection->getSelectionFactory();
     $this->primary = $this->context->getDatabaseReflection()->getPrimary($this->context->getTable());
     $this->refCache =& $this->getRefTable($refPath)->globalRefCache[$refPath];
 }