示例#1
0
文件: Select.php 项目: harp-orm/harp
 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());
 }
示例#2
0
文件: Update.php 项目: harp-orm/harp
 public function __construct(Repo $repo)
 {
     $this->repo = $repo;
     $this->table($repo->getTable());
     parent::__construct($repo->getDbInstance());
 }