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