public function __construct(Repo $repo) { $this->repo = $repo; $table = $this->getDb()->escapeName($repo->getTable()); $this->from($repo->getTable())->column(new SQL("{$table}.*")); parent::__construct($repo->getDbInstance()); }
public function __construct(Repo $repo) { $this->repo = $repo; $this->table($repo->getTable()); parent::__construct($repo->getDbInstance()); }