/** * 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(); }
/** * 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); }