예제 #1
0
 /**
  * Create a new view
  *
  * @param ConnectionInterface   $connection
  * @param array                 $columns
  */
 public function __construct(ConnectionInterface $connection, array $columns = null)
 {
     $this->connection = $connection;
     $this->query = $connection->query($this->getQueryName(), $columns);
     $this->filter = Filter::matchAll();
     $this->init();
 }
예제 #2
0
 /**
  * Create a new view
  *
  * @param ConnectionInterface   $connection
  * @param array                 $columns
  */
 public function __construct(ConnectionInterface $connection, array $columns = null)
 {
     $this->connection = $connection;
     $this->query = $connection->query($this->getQueryName(), $columns);
 }